Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

JSON error after token retrieval #7

Closed
Dhtjf opened this issue Sep 1, 2023 · 7 comments · Fixed by #8
Closed

JSON error after token retrieval #7

Dhtjf opened this issue Sep 1, 2023 · 7 comments · Fixed by #8
Labels
bug Something isn't working

Comments

@Dhtjf
Copy link

Dhtjf commented Sep 1, 2023

Updated from the prior version, starting from scratch, after my token expired. Built from cloning the repo and config updated. Running on Windows in Docker Desktop.
When running, it obtains a token after trying a few times but then errors out and goes to sleep (reduced to 1 minute here for testing). Is this an error on my part or something different? Thanks!

2023-09-01 12:26:53 usmobile-lifeguard | Failed to get token - retrying... 2023-09-01 12:27:10 usmobile-lifeguard | Got a new token! 2023-09-01 12:27:10 usmobile-lifeguard | Unexpected err=JSONDecodeError('Expecting value: line 1 column 1 (char 0)'), type(err)=<class 'requests.exceptions.JSONDecodeError'> 2023-09-01 12:27:10 usmobile-lifeguard | Sleeping for 1.0 minutes.

@dbrand666
Copy link
Owner

dbrand666 commented Sep 1, 2023

Yup. I'm seeing the same problem this morning. Looking at it right now.

Edit 1: It looks like they've tightened their Cloudflare config - maybe turned on Under Attack mode.

@dbrand666 dbrand666 added the bug Something isn't working label Sep 1, 2023
@dbrand666 dbrand666 linked a pull request Sep 1, 2023 that will close this issue
@Dhtjf
Copy link
Author

Dhtjf commented Sep 2, 2023

Thanks @dbrand666 for your work on this!

I'm now getting
2023-09-01 23:46:10 usmobile-lifeguard | Unexpected err=HTTPError('403 Client Error: Forbidden for url: https://api.usmobile.com/web-gateway/api/v1/pools/XXXXX'), type(err)=<class 'requests.exceptions.HTTPError'>
XXXXX being my pool ID. I verified the pool ID is accurate.

@dbrand666
Copy link
Owner

Yup. The new version ran for a few hours but I see it's getting that error now too. Looks like I'll need to try something else.

@dbrand666
Copy link
Owner

Sorry. I haven't had much time this week to deal with this, but... to my surprise, it looks like USMobile actually implemented auto top up themselves!

I enabled it on my account. Assuming it works as advertised, I'm not planning on doing anything further with this.

@Dhtjf
Copy link
Author

Dhtjf commented Sep 13, 2023

Thanks for the heads-up and I added it to my account. Thanks for making this before they released their own!

@gazpachoking
Copy link

Agreed. Thanks for this, and the notice. Also enabled on my account. It says that the top-ups roll over now? That wasn't the case for pooled plans before, hopefully that's accurate.

@dbrand666
Copy link
Owner

The rollovers seem to be working. I discovered it last month by accident - I had to top up just days before plan renewal and was pleasantly surprised to see it roll over.

@dbrand666 dbrand666 mentioned this issue Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants