mrworf / photoframe

Software to pull random photos from Google Photos and show them, like a photo frame
GNU General Public License v3.0
215 stars 38 forks source link

sensenet.ru giving 500 error #215

Open jmez11 opened 8 months ago

jmez11 commented 8 months ago

In attempting to set up my frame again (sd card died) i get to the authorization part and see:

This page isn’t working photoframe.sensenet.nu is currently unable to handle this request. HTTP ERROR 500

I've disabled ad blockers and tried other browsers. My previously set up and working credential json was what i used. I tried resetting up the credentials from scratch, just to be sure and those failed too.

Any help would be appreciated!

mrworf commented 8 months ago

Odd, I just tried calling https://photoframe.sensenet.nu/photoframe/?register=10.0.0.1:80 from my mobile device (without wifi) to make sure I get the same flow and it works (returns a hash). Can you try the link above and see what you get? Also, just https://photoframe.sensenet.nu should redirect to this github project.

jmez11 commented 8 months ago

That doesn't look like the url that my authorize button uses. I see the URL like:

https://photoframe.sensenet.nu/?state=xxx&code=xxx&scope=https://www.googleapis.com/auth/photoslibrary.readonly

mrworf commented 8 months ago

That's the correct URL, the browser calls my link first to get the state value (the hash value). See https://github.com/mrworf/photoframe#how-come-you-contact-photoframesensenetnu- for details on how this flow works.

Reason I posted the link was to make sure you could access the site to get the hash in the first place.

jmez11 commented 8 months ago

Yeah, no problems with the first url. The 500 error happens with the redirect url. I'm able to work around it by manually redirecting myself, so ongoing access is not an issue. It's only when setting up the new source. Can you try the full flow by authorizing a new google photos source yourself? It's still failing when i try adding and authorizing.