-
Notifications
You must be signed in to change notification settings - Fork 738
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
Client and server successfully deployed but ERROR #43
Comments
still same error after using new api
[nodemon] 2.0.20 Error: listen EADDRINUSE: address already in use :::5000 |
Based on the provided log, the error 429 is coming from the OpenAI API. The response object contains an HTTP status code of 429, which is indicative of Too Many Requests. This means that the client (your code) has exceeded the rate limit for the API. The response data also contains an error object, which may provide additional information about the error. In this case, it appears that the error is being thrown by Axios, which is the HTTP client library being used to make the API request. The log also indicates that the isAxiosError flag is set to true, which means that the error was generated by Axios rather than the server. To resolve the error, you will need to implement rate limiting or modify the code to reduce the number of API requests being made. You can also check the OpenAI API documentation to see if they provide any guidance on how to avoid this error. |
The error log has told you the cause of the error |
@Adylitto this is because the key that was in his code is already expired or out of credits, the best way to fix it is to get your own key and follow the steps to deploy the server, and then update the http on the script.js with the link of the new server. hope it helped. |
i have the same error @Adylitto plz help me here |
@Divyansh-singh08 i am also facing the same issue...please help |
Thank you very much 🙏🏽 |
{"message":"Request failed with status code 429","name":"Error","stack":"Error: Request failed with status code 429\n at createError (/opt/render/project/src/server/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/render/project/src/server/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/render/project/src/server/node_modules/axios/lib/adapters/http.js:322:11)\n at IncomingMessage.emit (events.js:388:22)\n at endReadableNT (internal/streams/readable.js:1336:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json","User-Agent":"OpenAI/NodeJS/3.1.0","Authorization":"Bearer sk-","Content-Length":133},"method":"post","data":"{"model":"text-davinci-003","prompt":"hi\n","temperature":0,"max_tokens":3000,"top_p":1,"frequency_penalty":0.5,"presence_penalty":0}","url":"https://api.openai.com/v1/completions"},"status":429}
The text was updated successfully, but these errors were encountered: