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

Z_DATA_ERROR #243

Open
i-am-henri opened this issue Dec 20, 2023 · 7 comments
Open

Z_DATA_ERROR #243

i-am-henri opened this issue Dec 20, 2023 · 7 comments

Comments

@i-am-henri
Copy link

Hey, I tried the npm package, and receave now this error:
image

My node Version: 18.18.2
I tried this out with nodemon and without nodemon.

@i-am-henri
Copy link
Author

Code:
image

@nfriedly
Copy link
Owner

Hum, it looks like that site supports br encoding, and node-unblocker does not; that might be the source of the issue.

@i-am-henri
Copy link
Author

ok, is there a way to fix that? (thanks for the fast reply)

@nfriedly
Copy link
Owner

Yeah, I just tested it out, and it's a CSS file that's claiming to be gzip encoded, but my suspicion is that it actually isn't, I think it's brotili (br) with an incorrect header.

It looks like node.js now has built-in broti support, so it shouldn't be too much trouble to add to the proxy.

@i-am-henri
Copy link
Author

do you have an example code piece, I'm very new to this package, and don't know how ti add broti to the proxy.

@nfriedly
Copy link
Owner

nfriedly commented Dec 20, 2023

So, I played with brotili a bit and it doesn't seem to solve the problem.

However I noticed that if I visit my local server over https (via nginx proxy manager), then everything works, but if I switch back to http then it crashes again. I'm not really sure why that is... Edit: now it's crashing over http and https, so I'm very confused.

@nfriedly
Copy link
Owner

I also noticed that some of the redirects the server sends out use http, which causes them to be refused by the browser, but that's an unrelated bug.

nfriedly added a commit that referenced this issue Dec 20, 2023
may be related to #243
nfriedly added a commit that referenced this issue Dec 20, 2023
may be related to #243
nfriedly added a commit that referenced this issue Dec 20, 2023
may be related to #243
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

2 participants