Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to construct 'Headers' #36

Closed
hossihub opened this issue May 12, 2024 · 12 comments
Closed

failed to construct 'Headers' #36

hossihub opened this issue May 12, 2024 · 12 comments

Comments

@hossihub
Copy link

Tried installing the https://github.com/jeppevinkel/jellyfin-tizen-builds/releases/download/2024-05-12-1523/Jellyfin-master.wgt. but get an error about "failed to construct headers" when opening the app on the TV.

@jeppevinkel
Copy link
Owner

I'm trying out a slightly different build config to see if that works, but I would hold off a bit on using 10.9.0 until there have been some updates to the official jellyfin-tizen repository.

I haven't personally upgraded my main server to 10.9.0 yes since I'm expected some kinks for the first release version.

@hossihub
Copy link
Author

Can I find download url for the 10.8 version? Seem to get the new one each time

@jeppevinkel
Copy link
Owner

This one should work for 10.8 https://github.com/jeppevinkel/jellyfin-tizen-builds/releases/tag/2024-05-04-1137

@hossihub
Copy link
Author

hossihub commented May 13, 2024

Here’s the error from the app on the latest (10.9)version:

rror:%20Failed%20to%20construct%20'Headers'%3A%20No%20matching%20constructor%20signature.%20e%20(file%3A///www/[email protected]:2:22761)%0Aoader%20(file:///www/15434.028f60b4fcaf765c61da.chunk.js:1:5812)%0Av%20(file:///www/[email protected]:2:51494)%0Afile:///www/[email protected]:2:52270%0Ad%20(file:///www/[email protected]:2:730)%0AGenerator.%20%E2%80%B9anonymous%3E%20(file:///www/[email protected]:2:2072)%0AGenerator.next%20(file:///www/[email protected]:2:1159)%0Ato%20(file:///www/[email protected]:2:6633)%0At%20u%20(file:///www/[email protected]:2:6836)%0Ait%20file:///www/[email protected]:2:6895

@hossihub
Copy link
Author

I get the same issue if I try to use the browser (Samsung 2018 The Frame) and connect .

@jeppevinkel
Copy link
Owner

jeppevinkel commented May 14, 2024

This is probably an issue upstream that I can't fix in my build pipeline since I'm not touching any of the actual code.
I'd like to follow this issue and see if a resolution is found. jellyfin/jellyfin-tizen#258.

I have tried it with both 10.8.13 and 10.9.1 on my TV. It can't show either of them, which leads me to believe there's an issue with either jellyfin-web or with jellyfin-tizen.

@burci
Copy link

burci commented May 15, 2024

I only head a time on the top right corner, not even a login, but downgraded tohttps://github.com/jeppevinkel/jellyfin-tizen-builds/releases/download/2024-05-04-1137/Jellyfin.wgt and now it works again even with 10.9.1 server version.

@kslenker
Copy link

kslenker commented May 17, 2024

I found same issue but also found this -- remix-run/react-router#11148

From the above link ---
it is due to some react-router code. Turns out, this is due to a bug in Samsung's JavaScript implementation. new Headers(undefined) should be a valid constructor, but running this on Samsung, this errors.

Thus, like in other projects I've seen, I've implemented the fix of running the constructor with an empty object (new Headers({})) instead of undefined or null (new Headers(undefined)).
---- end

@cheat2win
Copy link

The 2024-05-20 16:47 PreRelease Version fixes this issue, at least for me.

Thank you @jeppevinkel

@hossihub
Copy link
Author

same here! thanx for help :)

@jeppevinkel
Copy link
Owner

Great that it worked out. I'll close this issue now then. In the mean time, I'll probably have to rethink how I do releases to minimize problems 😄

@ilteoood
Copy link

Hi guys, sorry to necropost on this.
I've just tried to install version 10.9.8 and it's still happening.
Do you have any advice to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants