sebscholl / CloudyFib.dev

cloudy-fib-dev.vercel.app
0 stars 1 forks source link

Unexpected end of JSON input #1

Open tpiros opened 4 years ago

tpiros commented 4 years ago

I got access to the CloudyFib workspace. I am, however, running into issues. These are the steps that I have followed:

  1. Clone the repository
  2. Update the .env file with the details from the CloudyFib workspace
  3. run npm i
  4. Run npm run serve

After going through the login process via GitHub in the browser I see 'uno moment, ami-gato' and in the browser console the following messages appear:

POST http://localhost:3000/auth/ck4rjxrlz00qd08i5d4cm6tkk 405 (Method Not Allowed)
[Network error]: ServerParseError: Unexpected end of JSON input
POST http://localhost:3000/auth/ck4rjxrlz00qd08i5d4cm6tkk 405 (Method Not Allowed)
[Network error]: ServerParseError: Unexpected end of JSON input
tpiros commented 4 years ago

After doing some debugging I have figured out what was wrong but I have unveiled another issue. If a user has their email address set to be private in GitHub (like I do), the authentication will not work, since 8base requires the User.email to be set. Currently I don't see a way to change this behaviour in 8base and it's not feasible to ask GH users to make their emails public. Do you have any suggestions how to solve this? cc @traderd65