Open modulitos opened 5 years ago
Hi @modulitos !
I tested it here and I could authenticate. I think the problem is that you're getting the wrong token, try with localStorage.getItem('oauth_token')
or get the oauth_token on the redux web inspector panel.
I'm submitting a (bug report)
Brief Description
The README instructions for signing in to the app during local development are failing.
I was able to sign in using a workaround. We may want to add this workaround to the README.
What is the current behaviour, (attach relevant screenshots) ?
When following the "to sign in" instructions in the README's "local development" section, step 4 fails, preventing the user from signing in.
What is the expected behaviour ?
After pasting the
oauth_verifier
value into the "sign in" section, we should be able to click "submit" and log in.When does this occur ?
Nothing changes in the UI, and we are not signed in.
It looks like a POST is sent to the following endpoint: https://osmcha-django-staging.tilestream.net/api/v1/social-auth/
which results in a 500 with the following HTML response:
Getting a 500 from this endpoint seems to be the cause of the failure.
How do we replicate the issue ?
Repeat steps 1-4 in the "to sign in" instructions here: https://github.com/mapbox/osmcha-frontend#local-development.
Step 4 fails with the 500 described above.
Please tell us about your environment:
Node: 9.1.0 Browsers: Tested on both Firefox 70.0 and Chromium Version 78.0.3904.70 OS: ArchLinux
Other Information / context:
With some help from @batpad, we came up with the following workaround:
Navigate to the staging site: https://osmcha-django-staging.tilestream.net/
Enter
localStorage.getItem('token')
into the console to get your token. Copy that token.Then navigate back to https://localhost:3000 and enter
localStorage.setItem('token', <your-token>)
into the console, but pasting in the token for<your-token
.Refresh the page. We should be signed in now.