Skip to content

Server stops on attempt to send a message #6

@St1ma

Description

@St1ma

Greetings
Thanks for the tool, first of all

On attempt to send a message via claude proxy server got a problem with parsing json first, and immediately run into the issue - ERR_HTTP_HEADERS_SENT

{"level":30,"time":1753448438049,"pid":73809,"hostname":"MacBook-Pro.local","reqId":"req-2","res":{"statusCode":200},"responseTime":989.3641667366028,"msg":"request completed"}
SyntaxError: Unterminated string in JSON at position 130
at JSON.parse ()
at Object. (file:///Users/.../.npm/_npx/7fa4a753cadbb396/node_modules/anthropic-proxy/index.js:323:31)

....

.npm/_npx/7fa4a753cadbb396/node_modules/fastify/lib/wrapThenable.js:44:17","code":"ERR_HTTP_HEADERS_SENT"},"msg":"Cannot write headers after they are sent to the client"}
node:_http_server:344
throw new ERR_HTTP_HEADERS_SENT('write');
^

Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the client
at ServerResponse.writeHead (node:_http_server:344:11)

Could you please take a quick look what can be wrong? Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions