Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
505 error for anonymous users?

#EDIT: I can't change the subject, but this is a 500 error, not 505!!

Okay, this is going to be a very vague question because I don't know where to start looking.

I have a flask app, that works!! But I did some updating, and tried to make everything python3 compatible, and I ended up breaking it for my chromebook.

The app has the ability to authenticate users using OAuth, google, facebook, twitter. The weird thing is, when I try visiting the site from my chromebook, I get a 505 error. HOWEVER, when I visit the site from my macbook, I can log in as expected. Both using Chrome browser. I think the issue is when you visit the page, it checks to see who's logged in, and I once got an error in my log that said "User: 'None' not found." So I think there's an issue with handling that.

I thought it might be related to previous log-ins, or browser caching, or something of the sort, but I've tried with incognito browser windows, and the same error is had.

I'll post the whole app's code, if you want, but I thought maybe someone could give me a pointer in at least narrowing down the potential issues first. That way I can do some troubleshooting before bothering everyone further.

(FWIW: my app was originally based out of the Miguel Grinberg's megatutorial)

/r/flask
https://redd.it/66jgq1