Richard-Weiss / node-chatgpt-api

A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app.
https://www.npmjs.com/package/@waylaidwanderer/chatgpt-api
MIT License
11 stars 8 forks source link

Getting weird error on sending a response (with PandoraAI & Bing) #23

Open asleepynerd opened 6 months ago

asleepynerd commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

Error: Unexpected server response: 200
    at ClientRequest.<anonymous> (/root/bing-stuff/node-chatgpt-api/node_modules/ws/lib/websocket.js:896:7)
    at ClientRequest.emit (node:events:518:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Node.js version (please complete the following information):

Package version (please complete the following information):

Additional context Add any other context about the problem here.

asleepynerd commented 6 months ago

@Richard-Weiss

Richard-Weiss commented 6 months ago

@joshiewtf Do you maybe have more information? There's nothing about the actual code in the stacktrace.

asleepynerd commented 6 months ago

@Richard-Weiss There was nothing to do with the code for the stacktrace… all that i can tell you is that it happens when trying to send a second message to a chat on pandora / via the conversation endpoint.

asleepynerd commented 6 months ago

@Richard-Weiss