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] http://:::3000/graphql ERR_INVALID_URL #2391

Open
delonleonard opened this issue Dec 10, 2022 · 0 comments
Open

[BUG] http://:::3000/graphql ERR_INVALID_URL #2391

delonleonard opened this issue Dec 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@delonleonard
Copy link

Describe the bug
I am running inside Docker using the command docker run -p 3000:3000 -m 8g --rm -it -v ${PWD}:/workspace hydrogen.

I launch hydrogen using yarn dev --host.

In my chrome browser, I went to the address http://localhost:3000/graphql and I got the following error

root@574d7c760c44:/workspace# yarn dev --host
yarn run v1.22.19
$ GENERATE_SOURCEMAP=false shopify hydrogen dev --host
  > Local:    http://localhost:3000/
  > Network:  http://172.17.0.2:3000/

GET streaming SSR     200 ok    1991.13 ms http://localhost:3000/
GET streaming SSR     200 ok    10876.29 ms http://localhost:3000/
GET streaming SSR     200 ok    52.20 ms   http://localhost:3000/graphq;
GET streaming SSR     200 ok    68.24 ms   http://localhost:3000/__graphql
GET streaming SSR     200 ok    62.75 ms   http://localhost:3000/__graphql
/workspace/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

TypeError: Invalid URL
    at new NodeError (node:internal/errors:387:5)
    at URL.onParseError (node:internal/url:565:9)
    at new URL (node:internal/url:641:5)
    at getShopifyConfig (/workspace/node_modules/@shopify/hydrogen/dist/node/framework/plugins/vite-plugin-hydrogen-middleware.js:39:33)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /workspace/node_modules/@shopify/hydrogen/dist/node/framework/middleware.js:31:35 {
  input: 'http://:::3000/graphql',
  code: 'ERR_INVALID_URL'
}
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@574d7c760c44:/workspace# exit
exit
@delonleonard delonleonard added the bug Something isn't working label Dec 10, 2022
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