ThijsRay / podimo

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

ScraperAPI used instead of Zenrows (w/ Docker Compose) #32

Closed sauerhosen closed 6 months ago

sauerhosen commented 6 months ago

Hi Thijs, running in some issues with latest version. I've given the tool a Zenrows API key (and no Scraper_API key) but tools seems to be using ScraperAPI nonetheless.

podimo  | INFO | 2023-12-23T14:24:29Z | Spawning server on 0.0.0.0:12104
podimo  | Configuration:
podimo  | - DEBUG: True
podimo  | - PODIMO_HOSTNAME: podimo.lg8.nl
podimo  | - PODIMO_BIND_HOST: 0.0.0.0:12104
podimo  | - PODIMO_PROTOCOL: https
podimo  | - HTTP_PROXY: None
podimo  | - ZENROWS_API: 1315f##################e8
podimo  | - SCRAPER_API: None
podimo  | - CACHE_DIR: /src/cache
podimo  | - STORE_TOKENS_ON_DISK: True
podimo  | - TOKEN_CACHE_TIME: 432000 sec
podimo  | - PODCAST_CACHE_TIME: 21601 sec
podimo  | - HEAD_CACHE_TIME: 604800 sec
podimo  |
podimo  | DEBUG | 2023-12-23T14:24:29Z | Using selector: EpollSelector
podimo  | INFO | 2023-12-23T14:24:29Z | Running with https proxy defined in environmental variable HTTP_PROXY: None
podimo  | [2023-12-23 14:24:29 +0000] [1] [INFO] Running on http://0.0.0.0:12104 (CTRL + C to quit)
podimo  | INFO | 2023-12-23T14:24:29Z | Running on http://0.0.0.0:12104 (CTRL + C to quit)
podimo  | DEBUG | 2023-12-23T14:44:48Z | ChannelEpisodesQuery
podimo  | DEBUG | 2023-12-23T14:44:48Z | Starting new HTTPS connection (1): api.scraperapi.com:443
podimo  | ERROR | 2023-12-23T14:44:48Z | Error while fetching podcasts: HTTPSConnectionPool(host='api.scraperapi.com', port=443): Max retries exceeded with url: /?api_key=None&url=https://podimo.com/graphql&keep_headers=true (Caused by ProxyError('Unable to connect to proxy', NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7faea7c040>: Failed to resolve 'none' ([Errno -2] Name does not resolve)")))
midasvo commented 6 months ago

Ah, zie: https://github.com/ThijsRay/podimo/pull/33

ThijsRay commented 6 months ago

Thanks for your bug report! This was a mistake on my side, it should be fixed in https://github.com/ThijsRay/podimo/releases/tag/v0.4.2