Closed errno111 closed 5 years ago
Hi,
I am able to run the following JSON Post from a software called Fiddler
But when i make a new HTTP Request flow cards POST JSON that looks like this it wont work:
In the first textbox: http://192.168.1.141:8123/api/services/light/turn_on
and in the second text box:
{ "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlOTA3Y", "content-type": "application/json", "host": "192.168.1.141:8123", "Content-Length": "62", "entity_id": "light.hall_uppe_tak", "brightness": "0" }
and i get the following error: "Unexpected token: in JSON at position 3"
What am i doing wrong? =)
Best Regards Jonas
Responsed with pm on Homey Community Forum
Hi,
I am able to run the following JSON Post from a software called Fiddler
But when i make a new HTTP Request flow cards POST JSON that looks like this it wont work:
In the first textbox: http://192.168.1.141:8123/api/services/light/turn_on
and in the second text box:
{ "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJlOTA3Y", "content-type": "application/json", "host": "192.168.1.141:8123", "Content-Length": "62", "entity_id": "light.hall_uppe_tak", "brightness": "0" }
and i get the following error: "Unexpected token: in JSON at position 3"
What am i doing wrong? =)
Best Regards Jonas