Been trying to get started with ESPN+ using eplustv and I have a docker container running but getting refresh token errors when starting - here's the first few lines of the log:
2024-09-24 14:25:34
2024-09-24 14:25:34 > [email protected] start
2024-09-24 14:25:34 > ts-node index.ts
2024-09-24 14:25:34
2024-09-24 14:25:36 === E+TV v3.2.1 starting ===
2024-09-24 14:25:37 === ESPN+ Auth ===
2024-09-24 14:25:37 Please open a browser window and go to: https://www.espn.com/watch/activate
2024-09-24 14:25:37 Enter code: xxxxxx
2024-09-24 14:26:31 Refreshing device token (ESPN+)
2024-09-24 14:26:31 Could not get device token exchange
2024-09-24 14:26:31 Refreshing device refresh token (ESPN+)
2024-09-24 14:26:31 AxiosError: Request failed with status code 400
2024-09-24 14:26:31 at settle (/app/node_modules/axios/lib/core/settle.js:19:12)
2024-09-24 14:26:31 at IncomingMessage.handleStreamEnd (/app/node_modules/axios/lib/adapters/http.js:512:11)
2024-09-24 14:26:31 at IncomingMessage.emit (node:events:529:35)
2024-09-24 14:26:31 at IncomingMessage.emit (node:domain:489:12)
2024-09-24 14:26:31 at endReadableNT (node:internal/streams/readable:1400:12)
2024-09-24 14:26:31 at processTicksAndRejections (node:internal/process/task_queues:82:21) {
2024-09-24 14:26:31 code: 'ERR_BAD_REQUEST',
2024-09-24 14:26:31 config: {
2024-09-24 14:26:31 transitional: {
2024-09-24 14:26:31 silentJSONParsing: true,
2024-09-24 14:26:31 forcedJSONParsing: true,
2024-09-24 14:26:31 clarifyTimeoutError: false
2024-09-24 14:26:31 },
2024-09-24 14:26:31 adapter: [ 'xhr', 'http' ],
2024-09-24 14:26:31 transformRequest: [ [Function: transformRequest] ],
2024-09-24 14:26:31 transformResponse: [ [Function: transformResponse] ],
2024-09-24 14:26:31 timeout: 0,
2024-09-24 14:26:31 xsrfCookieName: 'XSRF-TOKEN',
2024-09-24 14:26:31 xsrfHeaderName: 'X-XSRF-TOKEN',
2024-09-24 14:26:31 maxContentLength: -1,
2024-09-24 14:26:31 maxBodyLength: -1,
2024-09-24 14:26:31 env: { FormData: [Function], Blob: [class Blob] },
2024-09-24 14:26:31 validateStatus: [Function: validateStatus],
2024-09-24 14:26:31 headers: AxiosHeaders {
2024-09-24 14:26:31 Accept: 'application/json',
2024-09-24 14:26:31 'Content-Type': 'application/x-www-form-urlencoded',
2024-09-24 14:26:31 Authorization: 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
2024-09-24 14:26:31 'User-Agent': 'axios/1.2.2',
2024-09-24 14:26:31 'Content-Length': '617',
2024-09-24 14:26:31 'Accept-Encoding': 'gzip, compress, deflate, br'
2024-09-24 14:26:31 },
I am able to get a channels.m3u and xmltv.xml files and I'm able to kinda use them - the stream won't play and I get errors in the log like:
2024-09-24 16:51:42 Channel #1 has an active event (The Pat McAfee Show). Going to start the stream.
2024-09-24 16:51:42 Could not get device token exchange
2024-09-24 16:51:42 Could not get device token exchange
2024-09-24 16:51:42 Could not get account grant
2024-09-24 16:51:42 Could not get BAM access token
2024-09-24 16:51:42 Event status: OVER
2024-09-24 16:51:42 Could not get stream data. Event might be upcoming, ended, or in blackout...
2024-09-24 16:51:42 Failed to parse the stream
2024-09-24 16:51:42 Could not get a playlist for channel #1. Please make sure there is an event scheduled and you have access to it.
Looking at the schedule it's not over and I think this error is happening only because of the token issues above, any suggestions / help?