Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error communicating with API: JSONDecodeError #167

Closed
VonOx opened this issue Aug 28, 2022 · 1 comment
Closed

Error communicating with API: JSONDecodeError #167

VonOx opened this issue Aug 28, 2022 · 1 comment

Comments

@VonOx
Copy link

VonOx commented Aug 28, 2022

Hi I've this error after configuration.

Error communicating with API: JSONDecodeError('unexpected content after document: line 1 column 2 (char 1)')

JSON

{
	"statusLavatrice":{
		"WiFiStatus":"1",
		"Err":"255",
		"MachMd":"1",
		"Pr":"15",
		"PrPh":"0",
		"SLevel":"2",
		"Temp":"90",
		"SpinSp":"4",
		"Opt1":"0",
		"Opt2":"0",
		"Opt3":"0",
		"Opt4":"0",
		"Opt5":"0",
		"Opt6":"0",
		"Opt7":"0",
		"Opt8":"0",
		"Steam":"0",
		"DryT":"0",
		"DelVal":"255",
		"RemTime":"136",
		"RecipeId":"0",
		"CheckUpState":"0"
	}
}

No encryption key, just hex
7B0D0A09227374617475734C6176617472696365223A7B0D0A09092257694669537461747573223A2231222C0D0A090922457272223A22323535222C0D0A0909224D6163684D64223A2231222C0D0A0909225072223A223135222C0D0A09092250725068223A2230222C0D0A090922534C6576656C223A2232222C0D0A09092254656D70223A223930222C0D0A0909225370696E5370223A2234222C0D0A0909224F707431223A2230222C0D0A0909224F707432223A2230222C0D0A0909224F707433223A2230222C0D0A0909224F707434223A2230222C0D0A0909224F707435223A2230222C0D0A0909224F707436223A2230222C0D0A0909224F707437223A2230222C0D0A0909224F707438223A2230222C0D0A090922537465616D223A2230222C0D0A09092244727954223A2230222C0D0A09092244656C56616C223A22323535222C0D0A09092252656D54696D65223A22313336222C0D0A0909225265636970654964223A2230222C0D0A090922436865636B55705374617465223A2230220D0A097D0D0A7D

debug log

2022-08-28 13:23:37.123 DEBUG (MainThread) [custom_components.candy] Finished fetching candy data in 2.259 seconds (success: False)
2022-08-28 13:23:48.724 DEBUG (MainThread) [custom_components.candy] Finished fetching candy data in 1.601 seconds (success: False)
2022-08-28 13:23:59.884 INFO (MainThread) [custom_components.candy.client] Trying to get a response without encryption (encrypted=0)...
2022-08-28 13:24:00.598 DEBUG (MainThread) [custom_components.candy.client]
2022-08-28 13:24:00.598 INFO (MainThread) [custom_components.candy.client] Failed to get a valid response without encryption, let's try with encrypted=1...
2022-08-28 13:24:07.543 INFO (MainThread) [custom_components.candy.client] Response is not encrypted (despite encryption=1 in request), no need to brute force the key
2022-08-28 13:24:27.631 INFO (MainThread) [custom_components.candy.client] Backing off status_with_retry(...) for 0.7s (aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected)
2022-08-28 13:24:29.990 DEBUG (MainThread) [custom_components.candy] Finished fetching candy data in 22.446 seconds (success: False)

Glad to help if needed

Thank you

@VonOx VonOx closed this as completed Aug 31, 2022
@VonOx
Copy link
Author

VonOx commented Aug 31, 2022

#53

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant