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

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

Open
sbatam opened this issue Apr 2, 2023 · 1 comment
Open

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

sbatam opened this issue Apr 2, 2023 · 1 comment

Comments

@sbatam
Copy link

sbatam commented Apr 2, 2023

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(realm)]: null,
[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
Copy link

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

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

2 participants