2023-04-02T13:23:32.644Z df3a5f89-d9f8-41d6-827f-f892dce7b4d5 ERROR Invoke Error {
"message": "Request failed with status code 429",
"name": "Error",
"stack": "Error: Request failed with status code 429\n at createError (/var/task/index.js:356:19)\n at settle (/var/task/index.js:372:16)\n at IncomingMessage.handleStreamEnd (/var/task/index.js:2222:15)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues: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 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",
"Content-Length": 289
},
"method": "post",
"data": "{\"model\":\"text-davinci-003\",\"prompt\":\"\\n Write a title and a rhyming story on 2 main characters called Jerry and Tom.\\n The story needs to be set within the scene Deep dark woods surrounded by small friendly monsters and be at least 200 words long\\n\",\"max_tokens\":1000,\"temperature\":0.7}",
"url": "https://api.openai.com/v1/completions"
},
"status": 429
}