Skip to content
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

Redeploying Hydrogen v1.3 on Vercel now causes Shopify API error when fetching data #578

Closed
1forh opened this issue Feb 24, 2023 · 6 comments
Labels

Comments

@1forh
Copy link

1forh commented Feb 24, 2023

What is the location of your example repository?

No response

What version of Hydrogen are you using?

1.3

What version of Remix are you using?

No response

Steps to Reproduce

Redeploy Hydrogen v1.3 on current Vercel platform.

Expected Behavior

Should build and load website successfully. All of our websites were working yesterday morning.

Actual Behavior

When loading the page and using the useShopQuery, now receiving this error in Vercel logs on multiple Hydrogen sites.

ERROR:  Failed to connect to the Storefront API: Invalid URL string.

Multiple websites were working yesterday using v1.3 of Hydrogen. All we did was redeploy them to Vercel yesterday afternoon after making a very small change, now they all show this error when loading and trying to connect to the Storefront API.

I'm not 100% sure what the URL it is referring to is but I've double checked that my store domain is correct if that is what it is talking about.

Any insight would be incredibly appreciated.

@1forh
Copy link
Author

1forh commented Feb 24, 2023

Upgrading to v1.4.3 seems to have fixed 2 out of 3 of the sites. Interesting and not sure why.

@georgeosutton
Copy link

Having the same issues v1.4.1 when redeploying on Vercel. Nothing has changed since last deployment.

@1forh
Copy link
Author

1forh commented Feb 24, 2023

@georgeosutton does upgrading to v1.4.3 help at all? It worked for 2 of my sites but not the third. Still wondering why.

@georgeosutton
Copy link

@georgeosutton does upgrading to v1.4.3 help at all? It worked for 2 of my sites but not the third. Still wondering why.

No but to the latest version v1.6.7 did help.

@juanpprieto
Copy link
Contributor

juanpprieto commented Feb 24, 2023

My immediate advise is to bring this to Vercel. I have seen many frameworks failing to build/erroring after what seems like a big update to their backend.

In this discussion Vercel is suggesting pining down the build version via an env variable. Maybe this could help.

@georgeosutton
Copy link

My immediate advise is to bring this to Vercel. I have seen many frameworks failing to build/erroring after what seems like a big update to their backend.

In this discussion Vercel is suggesting pining down the build version via an env variable. Maybe this could help.

Thanks for this will be useful if problems persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants