question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote schema error when used for local dev - document that remote schema URLs should use docker host based URLs esp for local dev

See original GitHub issue

Hi guys, I wanted to try the remote schema feature but it seems that it doesnt work for local development. First I thought it was an issue with my graphql server written in golang but then I tried with your nodejs boilerplate. When I add a remote schema in the UI I get this error back :

HttpExceptionRequest Request { host = "localhost" port = 4000 secure = False requestHeaders = [("Content-Type","application/json"),("User-Agent","hasura-graphql-engine/v1.0.0-alpha38")] path = "/graphql" queryString = "" method = "POST" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 } (ConnectionFailure Network.Socket.connect: <socket: 13>: does not exist (Connection refused))

even though I can do an introspection query … I tried with path “/graphql?” too and with 0.0.0.0 instead of localhost but without success. I guess that hasura remote schema only accepts https. Would it possible to add support for http too for (development purpose)? Is there a workaround that doesn’t involve deploy my app? Thank’s for the great work guys

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
coco98commented, Feb 25, 2019

@Sach97 This seems like the docker container not being able to connect to the server running on localhost. Can you try using host.docker.internal if you’re on a mac or the docker host IP basically?

That should work!

1reaction
tirumaraiselvancommented, Feb 26, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Local Dev to Staging to getting Production-Ready with Hasura!
We will look at different aspects of local development like running the ... Configure Remote Schema URLs and Headers with Env.
Read more >
Add a remote schema on Hasura from localhost rails server fails
Ok, finally got it ! The issue was with rails, not having host.docker.internal as a registered host, thus rendering an HTML error page....
Read more >
dockerd - Docker Documentation
If you need to access the Docker daemon remotely, you need to enable the tcp Socket. Beware that the default setup provides un-encrypted...
Read more >
GitLab Container Registry
This step is especially important if you are using multiple runners that cache images locally. If you use the Git SHA in your...
Read more >
Spring Boot Reference Documentation
Ready to actually start using Spring Boot? We have you covered: Build systems: Maven | Gradle | Ant | Starters. Best practices: Code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found