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

GraphQL URL is changed on graphql-inspector introspect #1667

Closed
teamstand-arun opened this issue Aug 31, 2020 · 5 comments
Closed

GraphQL URL is changed on graphql-inspector introspect #1667

teamstand-arun opened this issue Aug 31, 2020 · 5 comments
Labels
📦 released This issue or pull request is released

Comments

@teamstand-arun
Copy link

graphql-inspector introspect "http://arun.ws:8020/graphql-public-schema"
changes the URL to
FetchError: request to http://arun**.http**:8020/graphql-public-schema failed, reason: getaddrinfo ENOTFOUND arun.http

To Reproduce
Somehow the pattern ".ws:" is replaced to ".http:" as can be seen from the trace
FetchError: request to http://arun.http:8020/graphql-public-schema failed, reason: getaddrinfo ENOTFOUND arun.http
at ClientRequest. (/tools/node-v12.18.0-linux-x64/lib/node_modules/@graphql-inspector/cli/node_modules/node-fetch/lib/index.js:1455:11)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {

Can this be fixed please?

Expected behavior

Environment:

  • OS:
  • @graphql-inspector/...:
  • graphql:
  • NodeJS:

Additional context

@teamstand-arun
Copy link
Author

Running it from the binary installed in node_modules works though:

./node_modules/.bin/graphql-inspector introspect "http://arun.ws:8020/graphql-public-schema"
success Saved to ....

@kamilkisiela
Copy link
Owner

/tools/node-v12.18.0-linux-x64/lib/node_modules/@graphql-inspector/cli/node_modules/node-fetch/lib/index.js:1455:11
Seems like you're running two different graphql-inspector libraries, one global, one local.

Those two are at the same version?

@kamilkisiela
Copy link
Owner

An issue with ardatan/graphql-tools#1990
I fixed it in ardatan/graphql-tools#1991

@kamilkisiela
Copy link
Owner

Track #1674

@kamilkisiela kamilkisiela added the ⚙️ work in progress Someone is working on it label Sep 2, 2020
@kamilkisiela kamilkisiela added 📦 released This issue or pull request is released and removed ⚙️ work in progress Someone is working on it labels Sep 11, 2020
@kamilkisiela
Copy link
Owner

@teamstand-arun GraphQL Tools v6.2.1 is not out, please upgrade @graphql-tools/* dependencies (maybe even in your yarn.lock or package-lock.json file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 released This issue or pull request is released
Projects
None yet
Development

No branches or pull requests

2 participants