ai icon indicating copy to clipboard operation
ai copied to clipboard

Examples with error. (Failed to convert the response to stream)

Open juan-20 opened this issue 2 years ago • 1 comments

i dowloaded the next-openai-app and the sveltekit-openai changed the .env.local but i make the request i gives the error bellow; (next)

- error node_modules\ai\dist\index.mjs (112:10) @ AIStream
- error Failed to convert the response to stream. Received status code: 429. 

(sveltekit)

Error: Failed to convert the response to stream. Received status code: 429. at AIStream 

i just did one request and inside open-ai the API is with 0 usage.

this is the sveltekit route "chat":

to clone to project:

npx create-next-app --example https://github.com/vercel-labs/ai/tree/main/examples/next-openai next-openai-app

juan-20 avatar Jun 21 '23 18:06 juan-20

I think this will be covered by #163. Error code 429 came from OpenAI that you can log out the response body to see more details.

shuding avatar Jun 21 '23 19:06 shuding

Closing as a dupe of https://github.com/vercel-labs/ai/issues/144

MaxLeiter avatar Jun 29 '23 01:06 MaxLeiter