apollographql / apollo-studio-community

🎑 Β GraphQL developer portal featuring an IDE (Apollo Explorer), auto-documentation, metrics reporting, and more. This repo is for issues, feature requests, and preview docs. πŸ“¬
https://studio.apollographql.com
249 stars 29 forks source link

Cannot connect to my endpoint #98

Open agomez2 opened 3 years ago

agomez2 commented 3 years ago

Hi,

I am having issues connecting from https://studio.apollographql.com/sandbox/explorer to my endpoint which is not accessible to the whole internet, but it is accessible to me.

The error I get is Unable to reach server.

The endpoint is available. I can reach it with curl.

When I run the diagnosis command: npx diagnose-endpoint@1.0.11 --endpoint=https://xxx.xxx.xxx (edited for privacy)

I get this: Diagnosing https://xxx.xxx.xxx/ (changed url for privacy) Could not find any problems with the endpoint. Would you please to let us know about this at explorer-feedback@apollographql.com πŸ™ npm notice npm notice New minor version of npm available! 7.19.1 -> 7.22.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.22.0 npm notice Run npm install -g npm@7.22.0 to update! npm notice

I sent an email to explorer-feedback@apollographql.com but I get this response:

We're writing to let you know that the group you tried to contact (explorer-feedback) may not exist, or you may not have permission to post messages to the group. A few more details on why you weren't able to post:

  • You might have spelled or formatted the group name incorrectly.
  • The owner of the group may have removed this group.
  • You may need to join the group before receiving permission to post.
  • This group may not be open to posting.

I have checked in the chrome console and I do not see any CORS issue. I only get this warning: thin-client-min.js?v=2.80.0-75-2-gf82d2adda7:8 has an invalid href value

When I check in the network tab and I change the url that apollo studio has to access I see the same request/response as when I try a graphql api that works like the SpaceX one.

Do you have any other ideas of what I can try?

Thanks.

cheapsteak commented 3 years ago

Hi there! Thanks so much for the heads up! I didn't configure the inbox for explorer-feedback@apollographql.com correctly, that's now been fixed πŸ™

That is perplexing if it can't connect despite not having CORS problems

Would you mind sending the endpoint url to us so we could poke at it and debug? πŸ™

agomez2 commented 3 years ago

Hi Chang,

Thanks for your help. The endpoint is internal, unfortunately. It is impossible to access from outside the intranet.

The issue also happens with my localhost but not with the SpaceX api for example. So the issue is with my proxy or with https://studio.apollographql.com not working with proxies.