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 issueHi 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:
- Created 5 years ago
- Reactions:4
- Comments:11 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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!
We should also document it in the README here: https://github.com/hasura/graphql-engine/tree/master/install-manifests/docker-compose