Tameyer41 / liftoff

Mock Interview Simulator with AI-Powered Feedback
https://demo.useliftoff.com
MIT License
1.24k stars 200 forks source link

encounter "Too Many Requests Error" when calling api.openai.com/v1/audio/transcriptions #3

Closed Jingyi244 closed 1 year ago

Jingyi244 commented 1 year ago

Nice Project~! I have just tried it on vercel. after answering the question and click the "Process Transcript" button, I encountered an upload failed error, because of "call openai 429 (Too Many Requests) ".

I am using a free trail openAI account now, do I need a paid account?

logs from vercel console :

response: { status: 429, statusText: 'Too Many Requests', headers: { date: 'Mon, 12 Jun 2023 12:28:13 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '206', connection: 'close', vary: 'Origin', 'x-request-id': 'efa2da802323d516a37d43b9e4ac252a', 'strict-transport-security': 'max-age=15724800; includeSubDomains', 'cf-cache-status': 'DYNAMIC', server: 'cloudflare', 'cf-ray': '7d6217a82de15a15-IAD', 'alt-svc': 'h3=":443"; ma=86400' }, config: { transitional: [Object], adapter: [Function: httpAdapter], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: [Object], method: 'post', data: [FormData], url: 'https://api.openai.com/v1/audio/transcriptions' }, request: <ref 1> ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: true, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [TLSSocket], _header: 'POST /v1/audio/transcriptions HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------893667726780861988180487\r\n' + 'User-Agent: OpenAI/NodeJS/3.2.1\r\n' + 'Authorization: KEY\r\n' + 'x-vercel-id: kix1::pmkp9-1686572893051-93b7a8097553\r\n' + 'Host: api.openai.com\r\n' + 'Connection: close\r\n' + 'Transfer-Encoding: chunked\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/v1/audio/transcriptions', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'api.openai.com', protocol: 'https:', _redirectable: [Writable],

[Symbol(kOutHeaders)]: [Object: null prototype],

}

Jingyi244 commented 1 year ago

i mixed chatGPTPlus account and API account. setup a new api billing plan and solved