openpodcast / roadmap

πŸ—ΊπŸŽ™ Project Roadmap and Milestones for Open Podcast
0 stars 0 forks source link

SpotifyPodcastMetadata is empty #73

Closed woolfg closed 1 year ago

woolfg commented 1 year ago

account_id = 1 works, just two is missing

woolfg commented 1 year ago

2022-12-06 12:02:30.050 | INFO | __main__:fetch_and_capture:89 - metadata: Service Unavailable in https://github.com/openpodcast/open/actions/runs/3629312691/jobs/6121362916 ...

woolfg commented 1 year ago
 2022-12-06 13:48:46.289 | INFO     | __main__:fetch_and_capture:57 - Fetching metadata
2022-12-06 13:48:48.291 | INFO     | spotifyconnector.connector:_authenticate:80 - Retrieving Bearer
2022-12-06 13:48:48.292 | DEBUG    | spotifyconnector.connector:_authenticate:82 - Generating secrets
2022-12-06 13:48:48.292 | DEBUG    | spotifyconnector.connector:_authenticate:100 - Requesting User Authorization
2022-12-06 13:48:48.465 | DEBUG    | spotifyconnector.connector:_authenticate:140 - Requesting ***
2022-12-06 13:48:48.596 | SUCCESS  | spotifyconnector.connector:_authenticate:161 - *** retrieved!
2022-12-06 13:48:56.480 | INFO     | __main__:fetch_and_capture:89 - metadata: Service Unavailable
2022-12-06 13:48:56.480 | INFO     | __main__:fetch_and_capture:57 - Fetching detailedStreams
2022-12-06 13:49:03.391 | INFO     | __main__:fetch_and_capture:89 - detailedStreams: Service Unavailable
2022-12-06 13:49:03.391 | INFO     | __main__:fetch_and_capture:57 - Fetching listeners

and many errors more in https://github.com/openpodcast/open/actions/runs/3630117259/jobs/6123095861

mre commented 1 year ago

Strange. Does it fetch the wrong credentials maybe? It looks more like the Spotify endpoint isn't available, but that can't be because we have no problems with the other pipeline for open podcast.

mre commented 1 year ago

Fixed.

select * from spotifyPodcastMetadata where account_id=2;

returns a row for today (2022-12-21).

Reason was broken auth, which is fixed in apple-automation now. We use proper auth tokens throughout the stack.