gragland / chatgpt-chrome-extension

A ChatGPT Chrome extension. Integrates ChatGPT into every text box on the internet.
MIT License
2.89k stars 485 forks source link

Exceeded current quota error but only used 0.02c out of $18 #46

Open sbatam opened 1 year ago

sbatam commented 1 year ago

Getting this error after adding API key and installing chatgpt

ChatGPTError: ChatGPT error 429: { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null } }

full error

at file:///C:/Users/samri/Documents/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:242:29 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { statusCode: 429, statusText: 'Too Many Requests', [cause]: Response {

[Symbol(state)]: {
  aborted: false,
  rangeRequested: false,
  timingAllowPassed: true,
  requestIncludesCredentials: true,
  type: 'default',
  status: 429,
  timingInfo: {
    startTime: 301.7064999938011,
    redirectStartTime: 0,
    redirectEndTime: 0,
    postRedirectStartTime: 301.7064999938011,
    finalServiceWorkerStartTime: 0,
    finalNetworkResponseStartTime: 0,
    finalNetworkRequestStartTime: 0,
    endTime: 0,
    encodedBodySize: 0,
    decodedBodySize: 0,
    finalConnectionTimingInfo: null
  },
  cacheState: '',
  statusText: 'Too Many Requests',
  headersList: HeadersList {
    cookies: null,
    [Symbol(headers map)]: Map(11) {
      'date' => { name: 'Date', value: 'Sun, 02 Apr 2023 21:55:56 GMT' },
      'content-type' => {
        name: 'Content-Type',
        value: 'application/json; charset=utf-8'
      },
      'content-length' => { name: 'Content-Length', value: '206' },
      'connection' => { name: 'Connection', value: 'keep-alive' },
      'vary' => { name: 'vary', value: 'Origin' },
      'x-request-id' => {
        name: 'x-request-id',
        value: '65596114b624aa7a7a6aa27b0d4ad1d1'
      },
      'strict-transport-security' => {
        name: 'strict-transport-security',
        value: 'max-age=15724800; includeSubDomains'
      },
      'cf-cache-status' => { name: 'CF-Cache-Status', value: 'DYNAMIC' },
      'server' => { name: 'Server', value: 'cloudflare' },
      'cf-ray' => { name: 'CF-RAY', value: '7b1c51a75c0b61e3-YVR' },
      'alt-svc' => {
        name: 'alt-svc',
        value: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
      }
    },
    [Symbol(headers map sorted)]: null
  },
  urlList: [
    <ref *1> URL {
      [Symbol(context)]: URLContext {
        flags: 400,
        scheme: 'https:',
        username: '',
        password: '',
        host: 'api.openai.com',
        port: null,
        path: [Array],
        query: null,
        fragment: null
      },
      [Symbol(query)]: URLSearchParams {
        [Symbol(query)]: [],
        [Symbol(context)]: [Circular *1]
      }
    }
  ],
  body: {
    stream: ReadableStream {
      [Symbol(kType)]: 'ReadableStream',
      [Symbol(kState)]: {
        disturbed: true,
        reader: [ReadableStreamDefaultReader],
        state: 'closed',
        storedError: undefined,
        stream: undefined,
        transfer: [Object],
        controller: [ReadableStreamDefaultController]
      },
      [Symbol(nodejs.webstream.isClosedPromise)]: {
        promise: [Promise],
        resolve: [Function (anonymous)],
        reject: [Function (anonymous)]
      }
    }
  }
},
[Symbol(headers)]: Headers {
  [Symbol(headers list)]: HeadersList {
    cookies: null,
    [Symbol(headers map)]: Map(11) {
      'date' => { name: 'Date', value: 'Sun, 02 Apr 2023 21:55:56 GMT' },
      'content-type' => {
        name: 'Content-Type',
        value: 'application/json; charset=utf-8'
      },
      'content-length' => { name: 'Content-Length', value: '206' },
      'connection' => { name: 'Connection', value: 'keep-alive' },
      'vary' => { name: 'vary', value: 'Origin' },
      'x-request-id' => {
        name: 'x-request-id',
        value: '65596114b624aa7a7a6aa27b0d4ad1d1'
      },
      'strict-transport-security' => {
        name: 'strict-transport-security',
        value: 'max-age=15724800; includeSubDomains'
      },
      'cf-cache-status' => { name: 'CF-Cache-Status', value: 'DYNAMIC' },
      'server' => { name: 'Server', value: 'cloudflare' },
      'cf-ray' => { name: 'CF-RAY', value: '7b1c51a75c0b61e3-YVR' },
      'alt-svc' => {
        name: 'alt-svc',
        value: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
      }
    },
    [Symbol(headers map sorted)]: null
  },
  [Symbol(guard)]: 'immutable',
  [Symbol(realm)]: null
}

} }

Node.js v18.15.0

colinpeng-datascience commented 1 year ago

Your free credit might have expired. Need to add credit card info on the open ai platform to continue using it.