Skip to content

Using AMF3, calling a remote method with a string parameter 64+ characters fails #59

@youngsoul

Description

@youngsoul

input is something like:
client.myRemoteService.myRemoteMethod('rrrrrrrrrrrrrrjrrrrrrrrrrrrrrjrrrrrrrrrrrrrrjrrrrrffffffffffffff')
Error message:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x81 in position 48: ordinal not in range(128)

Where it seems to be failing is:
remoting/__init__py
def _write_body(...)
def _encode_body(message)

line 523: encoder.writeElement(x)

After it tries to write the element for that 64+ character string the stream has non-ascii characters in it and I receive the above error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions