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
Unhandled Runtime Error Error: Error: [object Object] #207
Comments
I have the same problem, how do you solve it? |
In my case, Next required data from API (provided for another service in my localhost). |
Could you explain this more please, I'm trying to figure this out myself |
He means that you have to create the storefront but with the medusa backend running. I tried it like this and it worked for me. |
I see, what if I'm hosting it on railway? I tried putting the railway url under NEXT_PUBLIC_MEDUSA_BACKEND_URL, got nothing tho |
Errors: I sitll get failure with Vercel deployment:
Although locally I see not problem with
|
ok the issue was just env var not being properly set in Vercel, as I had integrated Railway and overlooked one of the var was still missing in Vercel project! |
Having the same problem, which env did you not properly set in Vercel? |
@SharadKumar what var was it? Would have helped to mention it. @Kofi-Emma Did you solve it / find the var? |
@salvinoto did you solve this? |
@olivermrbl Hey Oliver, any idea what this could be? I'm stuck with this and having exactly the same issue as @SharadKumar on Vercel deployment (not locally) |
Hey @denisfelst - like others mentioned, errors like this usually indicate a failing connection to the Medusa server. The crucial env var to set is Double check if your Medusa server is running and healthy by visiting |
⚠ metadata.metadataBase is not set for resolving social open graph or twitter images, using "http://localhost:8000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
⨯ { error: 'fetch failed' }
⨯ [Error: Error: [object Object]] { digest: '193452068' }
⚠ ./node_modules/@medusajs/utils/dist/common/get-config-file.js
The text was updated successfully, but these errors were encountered: