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

I can not sign up expo.io #12145

Closed
ARAldhafeeri opened this issue Mar 8, 2021 · 8 comments
Closed

I can not sign up expo.io #12145

ARAldhafeeri opened this issue Mar 8, 2021 · 8 comments
Labels

Comments

@ARAldhafeeri
Copy link

ARAldhafeeri commented Mar 8, 2021

I can not sign up at expo.io

Error:
Something went wrong when connecting to Expo: Failed to fetch.

@brentvatne
Copy link
Member

are you able to access https://expo.dev in your browser?

@ARAldhafeeri
Copy link
Author

ARAldhafeeri commented Mar 9, 2021

@brentvatne Yes same issue when I try to make an account because, I am trying to deploy my app. When I fill my information correctly to register on :
https://expo.dev
https://expo.io
, I get the following:

Something went wrong when connecting to Expo: Failed to fetch.

I have also tried:

  • changing the emails.
  • changing the username.

Still when I click signup button, I get this message:

Something went wrong when connecting to Expo: Failed to fetch.

@byCedric
Copy link
Member

byCedric commented Mar 9, 2021

Are you able to access https://exp.host/--/api/v2/project/configuration/schema/40.0.0 (an endpoint from our API)?

@ARAldhafeeri
Copy link
Author

ARAldhafeeri commented Mar 10, 2021

@byCedric , I have tried naively to send a post request to the URL. Is that what you wanted me to do ? Since it is an API endpoint, I said; it does not make sense for me to access it from the the web browser. !?

const url= const url= "https://exp.host/--/api/v2/project/configuration/schema/40.0.0";

await fetch(url,
 {method: "POST",
email:"iahmedkuw@gmail.com", 
username:"iahmedkuw",
 password:"12341234Q@",
 confirmpassword:"12341234Q"}
).then(response => console.log(response))

I got this response back:

VM1361:1 Refused to connect to 'https://exp.host/--/api/v2/project/configuration/schema/40.0.0' 

because it violates the following Content Security Policy directive: "connect-src 'self' uploads.github.com www.githubstatus.com 

collector.githubapp.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-

5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-

6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events wss://alive.github.com 

*.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations".


(anonymous) @ VM1361:1
VM1361:1 Refused to connect to 'https://exp.host/--/api/v2/project/configuration/schema/40.0.0' because it violates the 

document's Content Security Policy.

(anonymous) @ VM1361:1

VM1361:2 Uncaught TypeError: Failed to fetch
    at <anonymous>:1:7

Make sense since it is a secuirty layer ? I am not allowed to send requests right ? Cause I am not in the allowed list ??

I do not know !

Documents for this response:
https://developers.google.com/web/fundamentals/security/csp

The jest of the following response is:
An endpoint violates the Content Security Policy directive when :
Code from specific URL should only have access to that specific URL data. When another URL that is not " whitelisted " gain communication with the same URL then the violation happens. And that as they said in the document is to prevent:
Cross-site scripting (XSS)

I have also looked at the developer tools -> network tab to see what requests are failing:

expo.dev
expo_dev_failed_requests

expo.io
expo_io_failed_requests

Failed requests on .dev and .io domain are sent to those two urls:

https://www.expo.host/--/api/v2/auth/createOrUpdteUser
https://www.expo.host/--/graphql

@brentvatne
Copy link
Member

@ARAldhafeeri - are you able to navigate directly to https://exp.host/--/api/v2/project/configuration/schema/40.0.0 in your browser? it should show you a json doc

@ARAldhafeeri
Copy link
Author

@brentvatne

https://exp.host/--/api/v2/project/configuration/schema/40.0.0

Does not show a JSON doc. It keep attempting to fetch it though. And instead, of getting status 200 on the fetch.

it keep loading an unsecure domain that response to the get response by this image:
request

in the network tap, the process keeps repeating , request to
https://exp.host/--/api/v2/project/configuration/schema/40.0.0
are redirected to the image url shown above.

over and over again

expo

Anything I can do to help ?

@ide
Copy link
Member

ide commented Mar 11, 2021

Are you able to connect using curl? That way you can eliminate the same-origin policy from the situation.

It may be that your ISP or something else about your internet connection is preventing you from connecting, which we have no control over.

@ARAldhafeeri
Copy link
Author

@ide you were right thank you so much. I guess there was a problem with my ISP as you said or somthing.

I connected to VPN over my phone and was able to register. I am located in kuwait.

I was also able to login without VPN

Thanks.

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

No branches or pull requests

4 participants