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

GooglePhotos Auth file not working #211

Open
ashinckley opened this issue Jun 5, 2023 · 5 comments
Open

GooglePhotos Auth file not working #211

ashinckley opened this issue Jun 5, 2023 · 5 comments

Comments

@ashinckley
Copy link

I've gone through the wiki process in setting up the GooglePhotos API at least 3 times now. Each time I get the same result, after I upload the .json file it hangs for a few minutes and provides the following error. See below. While the API instructions are slightly outdated, I think I followed the process as well as I could. There might be some new step or process I'm missing.

"Uh oh, something went wrong...
Please go to github and see if this is a known issue, if not, feel free to file a new issue with the following information:
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/photoframe/routes/baseroute.py", line 62, in __call__ return self.handle(self.app, **kwargs) File "/root/photoframe/routes/oauthlink.py", line 44, in handle return self.redirect(self.servicemgr.oauthStart(kwargs['service'])) File "/root/photoframe/modules/servicemanager.py", line 199, in oauthStart return svc.startOAuth() File "/root/photoframe/services/base.py", line 274, in startOAuth return self._OAUTH.initiate() File "/root/photoframe/modules/oauth.py", line 122, in initiate self.rid = self.getRedirectId() File "/root/photoframe/modules/oauth.py", line 118, in getRedirectId r = requests.get('%s/?register' % self.ridURI) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get return request('get', url, params=params, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) ConnectionError: HTTPSConnectionPool(host='photoframe.sensenet.nu', port=443): Max retries exceeded with url: /?register (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 110] Connection timed out',))

@mrworf
Copy link
Owner

mrworf commented Jun 5, 2023 via email

@mrworf
Copy link
Owner

mrworf commented Jun 6, 2023 via email

@ashinckley
Copy link
Author

Thanks for looking into this. I seem to get further into the process now.
I now get the Google error:
You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. [Learn more about this error](https://developers.google.com/identity/protocols/oauth2/web-server#authorization-errors-redirect-uri-mismatch) If you are a developer of this app, see [error details](https://accounts.google.com/). Error 400: redirect_uri_mismatch

I suspect this might be something on my end in following the wiki, or maybe Google has changed the process to be a bit different.

@ashinckley
Copy link
Author

In my attempts to change things up, I added the following to my Authorized redirect URIs:

http://photoframe.sensenet.nu
https://photoframe.sensenet.nu
http://www.photoframe.sensenet.nu
https://www.photoframe.sensenet.nu

Something changed. I now get to a Google login screen, but when I select my account I get the following error:

Access blocked: sensenet.nu has not completed the Google verification process **My email account address here** sensenet.nu has not completed the Google verification process. The app is currently being tested, and can only be accessed by [developer](https://accounts.google.com/)-approved testers. If you think you should have access, contact the developer. If you are a developer of sensenet.nu, see [error details](https://accounts.google.com/). Error 403: access_denied

@mrworf
Copy link
Owner

mrworf commented Jun 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants