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

haxe.Serializer and haxe.Unserializer #8480

Closed
filt3rek opened this issue Jun 26, 2019 · 5 comments
Closed

haxe.Serializer and haxe.Unserializer #8480

filt3rek opened this issue Jun 26, 2019 · 5 comments

Comments

@filt3rek
Copy link
Contributor

Hej !

I often use haxe.Serializer and Unserializer with remoting and I sometimes get "Class not found " (without the class name) and it occurs when on server side there are mistakes but why does it send "hxrxcy0:g" please ?
Could it be some other informations or at least not the "Class not found" without any classname because it's confusing ?

@Aurel300
Copy link
Member

It's hard to say what's happening without a reproducible example. Based on the serialisation format, your string (fragment?) seems to have some exceptions in it - the x characters. Could it be that your serialisation code is throwing errors? As for the class not found, it really cannot tell you anything else – the cy0: part literally means a class with the name "".

@filt3rek
Copy link
Contributor Author

Thanks for your answer !
It's not a fragment it's the whole string. And yes I saw it means exception, class, "". But I get this always from server side when an error occurs (not linked at all with any class...)

@filt3rek
Copy link
Contributor Author

Here the problem was an exception trying to get a property on null on server side...

@Simn
Copy link
Member

Simn commented Jun 26, 2019

This must be something wrong in your serialization code. As @Aurel300 says, there's nothing the deserializer can do with the information available to it.

I'm gonna have to close this unless you manage to provide some code which suggests this to be a Haxe problem.

@Simn Simn closed this as completed Jun 26, 2019
@filt3rek
Copy link
Contributor Author

Hej Simn,

I've found the error, it comes form hx3compat, remoting, HttpConnection.hx : HaxeFoundation/hx3compat#12

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

3 participants