-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unhandled opcode '128' #9
Comments
Fixed by replacing the This could be a weird WebJS/NodeJS incompatibility. [...]
var opindex = i
, opcode = pickle[i++];
//console.log('opcode ' + opindex + ' ' + opcode);
switch (String.fromCharCode(opcode)) {
// protocol 2
case PROTO:
[...] |
fix in #13 |
@foxt you should reopen this as its not merged yet! |
@foxt oops, I thought you were on to something but I did this in my code and I understood why the existing codebase is ok. :
(inflated is the content I had retrived from some source, which was not exactly like pickle.loads required) Your well intentioned pull request is not relevant anymore. (Sorry i distracted you with this earlier today) I also thought it was, but after reading about how to convert binary data to the proper format that pickle.loads requires made me realize It was ok all along and i was the one who misunderstood the codebase of jpickle. |
Hi, I'm trying to decode Pickle'd objects in JS.
Running the following code works
However this does not
I get ` Unhandled opcode '128' (the file starts with 80 02 7D 71 01 28 58 17 00 00 00)
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: