ThijsRay / podimo

https://podimo.thijs.sh
European Union Public License 1.2
41 stars 16 forks source link

Error: Invalid Podimo credentials or Podimo is unreachable #23

Closed pven closed 4 months ago

pven commented 9 months ago

After restarting the docker container I get this error. Since I have no idea how to check if podimo is online or what credentials are wrong, I wanted to log an issue for this. As far as I am aware my credentials are valid, otherwise I would get the popup.

[2023-10-04 12:41:12 +0000] [1] [INFO] Running on http://0.0.0.0:12104 (CTRL + C to quit)
AuthorizationPreregisterUser
An error occurred: Invalid Podimo credentials or Podimo is unreachable
Traceback (most recent call last):
  File "/src/main.py", line 97, in check_auth
    await client.podimoLogin(scraper)
  File "/src/podimo/client.py", line 106, in podimoLogin
    await self.getPreregisterToken(scraper)
  File "/src/podimo/client.py", line 83, in getPreregisterToken
    result = await self.post(headers, query, variables, scraper)
  File "/src/podimo/client.py", line 58, in post
    raise ValueError("Invalid Podimo credentials or Podimo is unreachable")
ValueError: Invalid Podimo credentials or Podimo is unreachable
pven commented 9 months ago

Forgot to mention: I receive new episodes, so it looks like it is working.

pven commented 9 months ago

Looks like it is broken:

ChannelEpisodesQuery
Error while fetching podcasts: Invalid Podimo credentials or Podimo is unreachable

In the Podimo-app it works.

ThijsRay commented 9 months ago

Unfortunately, I cannot reproduce your issue reliably. I have pushed some changes to main, that enable more explicit logging in case when something goes wrong. Some endpoints seem somewhat flaky, which might cause the errors to appear.

pven commented 9 months ago

I think Podimo did something to the podcast id. When I want to look it up, it is not in the URL anymore. Now the showname is in there.

(I get back to this later on.)

pven commented 9 months ago

I updated to the latest version.

This is the error:

RuntimeError: Podimo returned an error code. Response code was: 403 for query "query AuthorizationPreregister..."
AuthorizationPreregisterUser
An error occurred: Podimo returned an error code. Response code was: 403 for query "query AuthorizationPreregister..."
Traceback (most recent call last):
  File "/src/main.py", line 97, in check_auth
    await client.podimoLogin(scraper)
  File "/src/podimo/client.py", line 115, in podimoLogin
    await self.getPreregisterToken(scraper)
  File "/src/podimo/client.py", line 87, in getPreregisterToken
    result = await self.post(headers, query, variables, scraper)
  File "/src/podimo/client.py", line 60, in post
    raise RuntimeError(f"Podimo returned an error code. Response code was: {response.status_code} for query \"{query.strip()[:30]}...\"")
RuntimeError: Podimo returned an error code. Response code was: 403 for query "query AuthorizationPreregister..."

I am sure the credentials are ok since it worked earlier.

tobiasdosdal commented 9 months ago

Podimo is watching this repo i think :D

pven commented 9 months ago

Am I currently the only one with issues?

tobiasdosdal commented 9 months ago

no also me

pven commented 9 months ago

Some episodes come thru, but most of them don't.

ThijsRay commented 9 months ago

It looks like a rather strict rate limiting scheme has been put in place, which might explain why some episodes come through, but others don't

veelineen commented 9 months ago

I think Podimo did something to the podcast id. When I want to look it up, it is not in the URL anymore. Now the showname is in there.

(I get back to this later on.)

It's still there but you need to open the webplayer at open.podimo.com

pven commented 9 months ago

Since all the issues, I am affraid this alternative for the rss-feed is over?

pven commented 9 months ago

Since a week or so, there are no episodes coming thru anymore (as in: none).

ThijsRay commented 9 months ago

I am aware of that. I began working on a completely different approach. This will likely keep working for a very long time, but progress has been slow because of there is a major difference between how the web player and how the app works.

pven commented 8 months ago

If you need testers: let me know. Until then I am suffering with the Podimo-app. ;-)

ArjanM83 commented 8 months ago

I can confirm the authorization is no longer functioning. Even tried creating a new account with 3-month subscription.

Walter-o commented 5 months ago

Guys

Podimo just made some minor changes to their API.

I'll look if i can fix it in this repo soon.

For this podcast downloader repo i already fixed it and can download in bulk from Podimo: https://github.com/jo1gi/audiobook-dl/pull/86

thebang2 commented 4 months ago

Any progress so far?

ThijsRay commented 4 months ago

I'm closing this issue for now. The original issue can be solved by either running behind a proxy or from an network with a very good reputation at Cloudflare. Unfortunately, the other approach using Puppeteer I mentioned earlier doesn't work. Those changes would force you to send up to 100s of additional requests to Podimo's servers to retrieve a podcast feed, while the current approach can achieve the same with just a handful of requests.

If the issue pops up again, don't hesitate to open a new issue!