question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Oauth timeout error

See original GitHub issue

Hello there! I already saw some similar issues, but mine is a bit different.

So my react app uses Google JS Client library to handle the OAuth 2.0 flow. And I don’t use any custom cookies etc, google handles things for me (so to be honest I don’t know where and which data window needs to have to be in a logged-in state). I want to test the application, but basically, I need to login first to access anything.
And I decided to try this plugin.

First of all, it throws the same timeout error(that email field is not found). I investigated a lot, and now I managed to have the login process running but only in not headless mode. If headless mode is true, then test fails with the same time out error, and popupDelay doesn’t help.

image

Now another thing, since I don’t have any custom cookies, and google handles things for me, I see that with this plugin I still cannot do much, because probably I need to have localStorage and sessionsStorage from ‘accounts.google.com’ domain. Is this something doable? (I am not very familiar neither with cypress nor with puppeteer) And currently, at least in not headless mode I see that ‘localStorage’ and sessionsStorage are empty objects after task is done ((

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lirantalcommented, Feb 19, 2021

Yep, that’s… everyone’s problem 😃 I don’t have a way around it, it’s basically anti-fraud preventions from these social login providers like Google, GitHub, etc. Some will ask you for a 2FA and others will show a CAPTCHA.

0reactions
simsonekcommented, Feb 19, 2021

@lirantal sory for that, double checked it and you are right, the issue occurs only with headless: true, on non headless I am getting error that my browsers is not secure like on #71 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeouts and Errors | API Client Library for Java
This document describes how to set timeouts and handle HTTP errors that your code might receive when you use the Google API Client...
Read more >
Oauth2 timeout with google API - Stack Overflow
The expiration time as default seems to be 3600 seconds and when the token has <60s left then the API automatically refreshes this....
Read more >
API calls fail with timeout errors | Apigee X - Google Cloud
The client applications get timeout errors as a response for API calls on Apigee hybrid. You observe errors such as Error from server...
Read more >
Socket timeout error · Issue #1080 · googleapis/google-api ...
This issue happens about 6 or 7 minutes into the build and fails right before it attempts to insert a user into a...
Read more >
Timeout and Errors | Google APIs Client Library for Java
When an error status code is detected in an HTTP response to a Google API that uses the JSON format, the generated libraries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found