Question

It used to work. I have a program that GETs and inflates the gzipped facebook page data. Something has changed of late with the data I reiceve so that part way into the inflation I get an error Z_DATA_ERROR with the message "invalid code lengths set" If I try to recover using inflateSync, upon trying inflate again I immediately get the data error again.

The deflated data is here

Looking at other sites I don't get this error, it could be something specific to facebook's gzip compression

This has had me stumped for an embarrassing amount of time, I'd dearly like to know how to fix it, I would assume there's nothing wrong with the data if the browser handles it fine.

Était-ce utile?

La solution

The deflated data you posted is corrupt. There might be an error in your de-chunking.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top