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

[BUG]Crashed when using API routes as a proxy. #2458

Open
FriedRiceNoodles opened this issue Jan 28, 2023 · 0 comments
Open

[BUG]Crashed when using API routes as a proxy. #2458

FriedRiceNoodles opened this issue Jan 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@FriedRiceNoodles
Copy link

Describe the bug
Crashed when using API routes as a proxy like https://github.com/scottdixon/hydrogen-proxy-example.

To Reproduce
https://github.com/scottdixon/hydrogen-proxy-example

Screenshots
image

  • Hydrogen version 1.6.6
  • Node version 16.15.0

It looks like a bug of node-fetch, so I console the err then get:
image

node-fetch/node-fetch#1219

This bug has appeared since 2.6.8, and be fixed at 3.x(they said).
(2.6.7 is OK,I tried.)

So maybe the easiest way to solve this problem is to lock the version of node-fetch to 2.6.7.

Why do I need to use API routes as a proxy:
Shopify/hydrogen#1724

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant