Skip to content

The POST handler assumes any error in processing the message is a parse error #88

@brettimus

Description

@brettimus

The default error handling logic for the http transport's POST route handler always returns a parse error. However, after the introduction of sessions, it's possible an error may have been thrown by the session store itself as well. we should be able to return appropriate error messages to the client in this ase

      const errorResponse = createJsonRpcError(
        null,
        new RpcError(
          JSON_RPC_ERROR_CODES.PARSE_ERROR,
          "Parse error",
          error instanceof Error ? error.message : "Unknown parsing error",
        ).toJson(),
      );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions