Hydrogen V2 API call returning 500 only on production #753
Replies: 2 comments 13 replies
-
Can you give the detailed error message you're seeing? It's hard to debug without that. Additionally, I don't know if this will fix things, but I want to point out that, in Remix, it's "best practice" to use the A high-level example: An in-depth example:
|
Beta Was this translation helpful? Give feedback.
-
This is using the admin API, correct? Does it send a confirmation email when someone subscribes? I know this was an issue discussed before, so I'm trying to find out if a solution was found |
Beta Was this translation helpful? Give feedback.
-
Hello, I am currently working on a project that involves allowing users to submit their email address and sign up for email subscriptions. While this functionality works as expected on my local version of the site, I have been encountering a 500 error from the server when the site is deployed.
I have reviewed the code and am uncertain as to what the issue may be. My suspicion is that there may be a missing header or other configuration issue that I am overlooking.
I was wondering if anyone would be able to offer some insight into this matter or point me in the right direction for resolving this issue. I would be grateful for any assistance or advice you may be able to provide.
Thank you for your time and consideration. Here is the relevant code for reference:
I submit a form from the input component using this (shortened) handle submit function:
Beta Was this translation helpful? Give feedback.
All reactions