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

404 Error after attempting to authenticate through Github #174

Closed
LuchoTurtle opened this issue Oct 12, 2022 · 16 comments
Closed

404 Error after attempting to authenticate through Github #174

LuchoTurtle opened this issue Oct 12, 2022 · 16 comments
Assignees
Labels
BLOCKED :fire: Core team's HIGHEST priority, blocking critical work in-progress An issue or pull request that is being worked on by the assigned person please-test Please test the feature in Staging Environment and confirm it's working as expected. priority-1 Highest priority issue. This is costing us money every minute that passes. T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@LuchoTurtle
Copy link
Member

LuchoTurtle commented Oct 12, 2022

I was trying to authenticate with Github this morning so I could add a task to myself and I got a 404 Not Found error.
down

After refreshing the website, it now seems the WHOLE web app is down. No URL paths apparently work 😦

@nelsonic
Copy link
Member

@LuchoTurtle thank you very much for opening this issue. 🔥
Please try this again in Safari on your Mac so that we can isolate the variables. 🙏
You appear to have a few Chrome plugins installed we need to test without any "interference". 💻
Report back with your progress. 👍

@nelsonic nelsonic added technical A technical issue that requires understanding of the code, infrastructure or dependencies priority-1 Highest priority issue. This is costing us money every minute that passes. please-test Please test the feature in Staging Environment and confirm it's working as expected. BLOCKED :fire: Core team's HIGHEST priority, blocking critical work T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. labels Oct 12, 2022
@LuchoTurtle
Copy link
Member Author

Spot on, you're right. It seems that some of my extensions were the cause of it. It appears to be working on an incognito tab. Closing this issue as not relevant anymore.

@nelsonic
Copy link
Member

We've had issues with random Chrome Plugins in places I've worked in the past including with React or Angular projects. So it's the first thing I think of when I see issues like this. 💭

Glad you got it working. Your feedback on the MVP is very valuable/valued to us! 🙏

@LuchoTurtle LuchoTurtle reopened this Oct 12, 2022
@LuchoTurtle LuchoTurtle changed the title Not found: The site appears to be down 404 Error after attempting to authenticate through Github Oct 12, 2022
@nelsonic
Copy link
Member

@LuchoTurtle thank you for updating the title and re-opening the issue. ♻️
We need to investigate this ASAP. Should I bring my laptop to your desk and we pair on debugging this? 💻 🔥

@LuchoTurtle
Copy link
Member Author

Turns out it's not plugin-related. You can replicate my issue by:

  1. Going to mvp.fly.dev.
  2. Logging in through Github

Screenshot 2022-10-12 at 10 33 38

3. After logging in, the 404 error props up.

Screenshot 2022-10-12 at 10 34 30

4. Now the whole website is down 😦 .

Screenshot 2022-10-12 at 10 35 12

This happens in Safari as well. You can replicate this with an incognito window on Chrome.

@LuchoTurtle
Copy link
Member Author

Sure let's do it @nelsonic

@nelsonic
Copy link
Member

Noted. Just opening an issue for Stephany to work on in the next hour. will be right with you. Hopefully you have something else e.g: dwyl/phoenix-chat-example#54 you can look at in the mean time. 🤞

@nelsonic nelsonic self-assigned this Oct 12, 2022
@nelsonic
Copy link
Member

Let's take a look at this now. 🧑‍💻 ⏳ 🔥

@LuchoTurtle
Copy link
Member Author

Just tried with Google Auth and got the following error:

image

Even worse than the 404 ... 🤦

@nelsonic
Copy link
Member

That's super lame. I cannot replicate it in any browser on my machine.

But I do see this "Edit Profile" wall:
image
Which is another issue I want to address immediately after this one: #172

@LuchoTurtle if you have time now, I could open the Fly.io Logs for both the MVP and auth and we can attempt to debug this. 🧑‍💻

@nelsonic
Copy link
Member

OK, I'm able to replicate the 404 in a private Safari session: ⛔

image

It appears that the auth redirect is no longer working 🤷‍♂️
Or ... it works for my (non incognito session) but not in this private window. 🦹‍♂️

@nelsonic
Copy link
Member

According to the logs for the MVP App: https://fly.io/apps/mvp/monitoring
image

The failure is:

SELECT p0."person_id", p0."name", p0."inserted_at", p0."updated_at" FROM "people" AS p0 WHERE (p0."person_id" = $1) [142]

14:52:59.996 request_id=Fx1Z_OpPI33afeIAACRx [debug] Converted error Ecto.NoResultsError to 404 response

Looking up the person is what is breaking this request.
The person doesn't exist and therefore the session fails.

Let's fix this. 🛠️

@nelsonic
Copy link
Member

To be clear: the MVP is still working for me in my main window:

image

So I had to go out of my way to see the issue. But it's definitely there for new people trying to use the MVP.

@nelsonic nelsonic added the in-progress An issue or pull request that is being worked on by the assigned person label Oct 13, 2022
@nelsonic nelsonic mentioned this issue Oct 13, 2022
10 tasks
@SimonLab
Copy link
Member

It looks like #174 (comment) is also the issue I've spotted #168
I've added a fix on the list PR #165 (comment)
I can extract this code to a new PR while list is being worked on.
In the future, I don't think we'll need this as the people table might be removed

SimonLab added a commit that referenced this issue Oct 19, 2022
Allow anyone to access the application
related to: #174
@LuchoTurtle
Copy link
Member Author

Github sign-in appears to be working now. Thank you!

@nelsonic
Copy link
Member

@LuchoTurtle thank you for confirming you are able to login using GitHub. 🎉
Please proceed to: #140 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKED :fire: Core team's HIGHEST priority, blocking critical work in-progress An issue or pull request that is being worked on by the assigned person please-test Please test the feature in Staging Environment and confirm it's working as expected. priority-1 Highest priority issue. This is costing us money every minute that passes. T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

3 participants