Getting 504 Error When Project Launched to Deployment #7424
Replies: 1 comment
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi!
I am having an issue when I launch my Next.js project to deployment. On the development platform I am essentially making a call from a text prompt to an API, which originally called the OpenAI platform (but I have since stripped away the OpenAI code, replacing it with a simple console.log, but the issue persists!). Here is my code in the page.tsx:
Once the submitMessage function (located in the same folder in file called action.tsx) is called, it calls the following function:
However, this function calls out every single time, breaching the 15 second time limit. The original calls to OpenAI never took longer than a second or so, and even after stripping most of the code out, I am confused as to why the call to this function is taking so long. Any help as to why this may be the case would be greatly appreciated!
Best,
Adam
Example
No response
Steps to Reproduce
I have attached some screenshots above!
Beta Was this translation helpful? Give feedback.
All reactions