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

Unexpected character in TLS #61

Open
SanderNID opened this issue Dec 21, 2022 · 1 comment
Open

Unexpected character in TLS #61

SanderNID opened this issue Dec 21, 2022 · 1 comment

Comments

@SanderNID
Copy link

Hi,

I get sometimes errors that the payload is not a json fromat. When I turn TLS off this problem does not occur, however when TLS is enabled we get these errors sometimes.

Any clue?

• 2022-12-07T15:00:26.599Z: Unexpected character ('笢' (code 31522 / 0x7b22)): was expecting double-quote to start field name at [Source: (byte[])"\u0000{{"name":"GPS","ts":1670425161

• 2022-12-07T15:33:46.48Z: Unrecognized token 'ï뾽笢湡浥': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (byte[])"\u0000�{"name":"GPS","ts":1670427161

• 2022-12-07T16:07:06.475Z: Illegal character ((CTRL-CHAR, code 1)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: (byte[])"\u0001�{"name":"GPS","ts":1670429161

• 2022-12-07T16:40:26.475Z: Illegal character ((CTRL-CHAR, code 2)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: (byte[])"\u0002\u0007{"name":"GPS","ts":1670431161

• 2022-12-07T17:13:46.484Z: Illegal character ((CTRL-CHAR, code 2)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: (byte[])"\u0002�{"name":"GPS","ts":1670433161

Best regards,
Sander

@stefandreyer
Copy link
Owner

Hi Sander,

Puh, do you have any possibility to Monitor your telegrams? Maybe you make a second connection to another broker without TLS to verify the content?

Is the Unexpected char always at the same possition?

Do you use the latest lib? There was a problem calculating the remaining length(but should be indepenten for TLS/ no TLS).

Else you may use a pumkin Pi to look in the pakets(I never tried this).

BR Stefan

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

2 participants