tRPC router refreshes and gives 429 HTTP error
I am implementing a new "endpoint" as from what I have understood. The tRPC looks like the following:
I query this in the frontend like so:
My problem is that I think something with the async function is messing up, it gives me a 429 error meaning I am sending too many requests, and I really don't understand why the data is not being fetched.
4 Replies
Actually It might have something to do with the OpenAI api endpoint
i dont think you can use trpc with openai
you can
GitHub
GitHub - jlalmes/trpc-openapi: OpenAPI support for tRPC 🧩
OpenAPI support for tRPC 🧩. Contribute to jlalmes/trpc-openapi development by creating an account on GitHub.