Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatGPTError: ChatGPTAPI error 403 after successful authentication. #4

Open
tnspartan1 opened this issue Mar 16, 2023 · 0 comments
Open

Comments

@tnspartan1
Copy link

Hi,
I was able to authenticate, launch chatgpt, but when I started to chat, I ran into the ChatGPTAPI error403 below.

C:\Users\xxxxx\Documents\chatgpt\chatgpt-twitch-bot-main>npx tsx chatgpt-twitch-bot.ts
[11:00] info: Connecting to irc-ws.chat.twitch.tv on port 443..
[11:00] info: Sending authentication to server..
[11:00] info: Connected to server.
[11:00] info: Executing command: JOIN #twitchchannelname
[11:00] info: Joined #twitchchannelname

[11:01] info: [#thaosweetcorn] : !chatgpt test
c:\Users\xxxxx\Documents\chatgpt\chatgpt-twitch-bot-main\node_modules\chatgpt\build\index.js:74
const error = new ChatGPTError(msg);
^

ChatGPTError: ChatGPTAPI error 403
at fetchSSE (c:\Users\xxxxx\Documents\chatgpt\chatgpt-twitch-bot-main\node_modules\chatgpt\build\index.js:74:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
statusCode: 403,
statusText: 'Forbidden',
response: Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 403,
timingInfo: {
startTime: 86900.71299993992,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 86900.71299993992,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 527,
decodedBodySize: 0,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Forbidden',
headersList: HeadersList {

  body: {
    stream: ReadableStream {
      [Symbol(kType)]: 'ReadableStream',
      [Symbol(kState)]: {
        disturbed: false,
        reader: undefined,
        state: 'readable',
        storedError: undefined,
        stream: undefined,
        transfer: [Object],
        controller: [ReadableStreamDefaultController]
      },
      [Symbol(nodejs.webstream.isClosedPromise)]: {
        promise: [Promise],
        resolve: [Function (anonymous)],
        reject: [Function (anonymous)]
      },
      [Symbol(nodejs.webstream.controllerErrorFunction)]: **[Function: bound error]**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant