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

Always returns with error "failed to fetch" #141

Open
remino opened this issue Oct 19, 2023 · 1 comment
Open

Always returns with error "failed to fetch" #141

remino opened this issue Oct 19, 2023 · 1 comment

Comments

@remino
Copy link

remino commented Oct 19, 2023

I'm trying graphqurl, and no matter what I do, all I get is failed to fetch. Works with cURL, however.

$ graphqurl --version
graphqurl/1.0.1 darwin-arm64 node-v18.14.1
$ gq http://localhost:4000/graphql -q '{ hello }'
Executing query... error
Error:  { errors: [ { message: 'failed to fetch' } ] }
$ curl -X POST -H 'content-type: application/json' -d '{ "query": "{ hello }" }' http://localhost:4000/graphql
{"data":{"hello":"world"}}

Looking at the log of the server, it looks like gq isn't even sending the GraphQL request to it. curl does.

@FickleLife
Copy link

I am getting the same issue....

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

No branches or pull requests

2 participants