Open adamef93 opened 1 week ago
Just wanted to add that I noticed a new error message while checking the container logs
TypeError: Cannot read properties of undefined (reading 'zip')
at GothamHandler.<anonymous> (/app/services/gotham-handler.ts:957:41)
at Generator.next (<anonymous>)
at /app/services/gotham-handler.ts:8:71
Could not add TVE subscription for Gotham!
at new Promise (<anonymous>)
at __awaiter (/app/services/gotham-handler.ts:4:12)
at GothamHandler.addTVESubscription (/app/services/gotham-handler.ts:946:108)
at GothamHandler.<anonymous> (/app/services/gotham-handler.ts:869:18)
at Generator.next (<anonymous>)
at fulfilled (/app/services/gotham-handler.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
I'm not sure this is related, but I'm unable to even get the popup from the GUI to add the TVE provider. In the browser, the toggle generates a 500 error, and in the EPlusTV container log, I get:
Error [InvalidTokenError]
at Object.<anonymous> (/app/node_modules/jwt-decode/lib/index.js:9:31)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/app/services/espn-handler.ts:7:1)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module.m._compile (/app/node_modules/ts-node/src/index.ts:1310:23) {
message: 'Invalid token specified'
}
Could not start the authentication process for Gotham!
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:405:5)
at Function.from (node:buffer:325:9)
at /app/services/providers/gotham/views/TveLogin.tsx:15:25
at Generator.next (<anonymous>)
at fulfilled (/app/services/providers/gotham/views/TveLogin.tsx:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
Try deleting the container and associated data volume if you haven't already. I haven't seen this particular error, but clearing everything and starting from scratch has fixed any auth/refresh problem I've had
I just tried it after seeing your comment to confirm if Gotham changed how authentication was being done and broke the app, but it still worked for me
I've deleted everything more than once, and even changed permissions. It looks like the app is failing to serve the auth asset to create the popup. I've tried everything else I can think of, unfortunately. Unlike in your case, mine never authenticated to TVE in the first place. The good news is the new Gotham service seems to have eliminated the stream breaks and audio sync issues going to and from commercial.
What you're describing sounds similar to how adblockers work. Do you have a pihole or adguard server or something filtering outbound communication? There's a lot of auth services being used that can easily get blocked. I speak from experience and had to whitelist my docker host from using my pihole when I first deployed to my network
I have both. However, I took pihole out of the loop for my docker host and the PC I'm using to access the GUI. Also disabled local adblockers and even tried it in multiple browsers, including a few with no adblocker plugin even installed. As far as I'm aware, the 500 error is an internal server error inside the EplusTV container. It doesn't give any further detail, though, so I don't know where to look next. Plus, the EplusTV log is throwing an invalid token error, which I assume means it's not constructing the TVE request correctly.
Do you have any forced redirection to the pihole/adguard on your router? I used a guide like this to make sure all devices would be forced to the pihole even if they have baked in DNS configs (like smart TVs having 8.8.8.8 hardcoded in)
https://coygeek.com/docs/pihole-pfsense-redirect-netgate/
Something is definitely blocking outbound to Gotham or whatever auth service it's using. It isn't anything with the browser since the server is the one making the outbound request
Nope, no forced redirection and no indication in firewall logs of any rewrites.
Just also wanted to mention that I noticed simply deleting and recreating the container without deleting the config volume and fully re-authenticating might fix the token issues I'm experiencing.
I'm so sorry for making another post, but something appears to be up with how Gotham is handling tokens.
I've gotten into the habit recently of making sure the MSG+/now Gotham integration works on game days and have often needed to delete the config volume and re-authenticate fresh in order for things to work. It was working fine last night, but I needed to delete the config volume and re-authenticate fresh this morning. Toggling the integration in the web UI and re-authenticating didn't work. The issue seems to be with the TVE account I'm using and not with the Gotham login specifically because events are still listed in this state, they just won't play. It also looks like toggling the integration/using the re-authenticate button only affects the Gotham login and doesn't clear any associated TVE credentials.
I probably should've let you know this was a problem sooner since it was also happening under MSG, my bad. The fix was quick enough that I just dealt with it. Things are working for the game tonight and I can keep re-authenticating the way I have been for future games, so there's no rush to take a look at this.
Thanks in advance!