-
SummarySo I had this code working fine, but suddenly stopped? go figure.. and update? The latest code which was working is this here: ^^^ from here I did a bunch of other test and changes from my localhost, and now that code doesn't work either.. It was actually loading info to the DB, now it doesn't even do that.. I just gives me a straight 502 Bad Gateway.. Wonderful ChatGPT tells me to run it on node.js run time? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
A couple of things to verify...
There must be some logs though... What does this print? } catch (error) {
console.error("❌ Error:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
}Also upgrade your Next.js version to 15.5.12 |
Beta Was this translation helpful? Give feedback.
-
|
Well.. I uploaded the new file to github and the upload went through even if it doesn't work. DATABASE_URL is it still valid? <--- even this morning I was logging into the database, but it didn't send mails.... now it doesn't log into the database. SENDGRID_API_KEY <-- yes.. checked it. I rant npm run built and got this:
▲ Next.js 16.1.6 (Turbopack)
The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compiled-time. https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config ./app/api/sendgrid-webhook/route.js:44:14
The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compiled-time. https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config ✓ Compiled successfully in 2.3s Route (app) ○ (Static) prerendered as static content PS D:\EdgarLindo\things\Stuff\Acode\contact> |
Beta Was this translation helpful? Give feedback.
-
|
This is the current package.json "scripts": { |
Beta Was this translation helpful? Give feedback.
-
|
BTW.. I did fix the | export const config = { error... at least it isn't giving me an error on build anyway.. The api/sendgird doesn't give me errors on build either, but it just doesn't work... just gives me bad Gateway.. |
Beta Was this translation helpful? Give feedback.
A couple of things to verify...
There must be some logs though...
What does this print?
Also upgrade your Next.js version to 15.5.12