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

'utf-8' codec can't decode byte 0xa1 in position 238: invalid start byte #13

Open
jiridanek opened this issue Oct 11, 2020 · 3 comments
Assignees

Comments

@jiridanek
Copy link
Member

jiridanek commented Oct 11, 2020

[10:25:31] [PASS] dtestlib.Test :: [root@10.0.135.47]$  /var/dtests/node_data/clients/cli_wrapper.sh  -DDTESTS_PID=15711 -DC_KILLTIME=200 -DC_HANG_ANALYSIS_ENA=0 -DC_CRASH_ANALYSIS_ENA=0 -DC_CRASH_FILE_DELETE_ENA=0  /var/dtests/node_data/clients/aac0_sender  --log-msgs dict --broker admin:admin@10.0.135.47:5672 --connection-options "{  sasl_mechanisms : 'PLAIN', protocol : 'amqp1.0' }" --address "'test_direct_transient_list_message'" --count 1 --msg-content-list-item "" --msg-content-list-item "String" --msg-content-list-item "~1" --msg-content-list-item "~1.0" --msg-content-list-item "1" --msg-content-list-item "1.0" --msg-content-list-item "~-1" --msg-content-list-item "~-1.3" --msg-content-list-item "-1" --msg-content-list-item "~~1" --msg-correlation-id corr-id-cddBEp # ecode:0 (exp. 0), dur.:0.14
$ /var/dtests/node_data/clients/aac0_receiver --log-msgs dict --broker admin:admin@10.0.135.47:5672 --connection-options {  sasl_mechanisms : 'PLAIN', protocol : 'amqp1.0' } --address 'test_direct_transient_list_message' --count 1 >/tmp/dtests_15711/wraptmp.15711.aac0_receiver.1e9b761d.stdout.RCwNgR6zFg.txt 2>/tmp/dtests_15711/wraptmp.15711.aac0_receiver.1e9b761d.stderr.lvAWGR3qyR.txt
$ less /tmp/dtests_15711/wraptmp.15711.aac0_receiver.1e9b761d.stdout.RCwNgR6zFg.txt
{'redelivered': 'False', 'reply_to': '', 'subject': '', 'content_type': 'amqp/list', 'user_id': '', 'id': '', 'correlation_id': 'corr-id-cddBEp', 'priority': '0', 'durable': 'False', 'ttl': 0, 'size': '62',  'properties': {}, 'content': '<A1>^@<A1>^FString<81>^@^@^@^@^@^@^@^A<82>?<F0>^@^@^@^@^@^@<A1>^A1<A1>^C1.0<81><FF><FF><FF><FF><FF><FF><FF><FF><82>
<BF><F4><CC><CC><CC><CC><CC>͡^B-1<A1>^B~1'}```
@jiridanek jiridanek self-assigned this Oct 11, 2020
@jiridanek
Copy link
Member Author

This is seriously weird, because I clearly remember we fixed this. It apparently resurfaced just because the binary is compiled differently? Or due to some other mistake I made now? The original fix for this is bef127a, https://issues.redhat.com/browse/MSGQE-5824.

@jiridanek
Copy link
Member Author

The problem appears to be the ENABLE_MODERN CMake flag/preprocessor define. We've fixed the legacy path, but not the "modern" code path for printing.

@jiridanek
Copy link
Member Author

Printing with -DENABLE_MODERN=OFF does work,

{'redelivered': True, 'reply_to': None, 'subject': None, 'content_type': 'amqp/list', 'id': None, 'user_id': None, 'correlation_id': 'corr-id-cddBEp', 'priority': 0, 'durable': False, 'ttl': 0, 'properties': {'x-amqp-delivery-count': 1}, 'content': [None, 'String', 1, 1.000000e+00, '1', '1.0', -1, -1.300000e+00, '-1', '~1']}

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

1 participant