-
Notifications
You must be signed in to change notification settings - Fork 43
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
[BUG] Production Event .send is sending request to Dev Environment #730
Comments
Update: I did try forcing INGGEST_DEV to 0 Env Var in Vercel just for the production branch. It still does not fix it, same issue present :(. Would love to get some help on this as this has rendered our app unusable and we're unable to support customers. I'm also unable to delete and re-add the project into Inngest, as there's only an "Archive/Unarchive" option |
Hi @abe17124! 👋 Does indeed sound like your app's just not picking up any environment variables. Could I ask a couple more questions?
|
Hey Jack! And for context, it did not start suddenly, this was the first time I had invoked a func from within code (all other times, I just used cron jobs), so first time exposing myself to the error that was always there. I think maybe a small improvement opportunity would be to clarify the Error message to mention "check env variable's/which env the func is being invoked" when running in Prod since Inngest just defaults to the Dev enviroment if the var's don't exist (which was just a red herring, and not the issue). Thanks again, also love Inngest!! |
Describe the bug
I have a NextJS application hosted on Vercel, and synced with Inngest with the auto integration and have confirmed it works correctly (able to invoke functions through Inngest dashboard or Cron). I am trying to .send() to trigger an existing function, however, I am seeing two issues in the production deployment:
1.) .send() Request URL is pointing to localhost (127.0.0.0:/dev)
2.) NO_EVENT_KEY_SET Error occurring even though it was automatically set in Env Variables on Vercel (I verified)
This Production deployment error clears when I run the Inngest dev client server locally, which seems broken given production is connection to a localhost.
I also have no issues running the app locally + using Inngest locally, if that matters.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the production deployment to hit the /api/inngest route, and invoke the function there using the INNGEST_EVENT_KEY autoset in the Env variables on Vercel.
Code snippets / Logs / Screenshots
"Dev" Request going to localhost:
NO_EVENT_KEY_ERROR:
Note, origin URL is correct (production URL), and X-Inngest-Server-Kind value is cloud (which also seems correct)
Seems to error out here:
System info (please complete the following information):
The text was updated successfully, but these errors were encountered: