irritanterik / homey-http-request-actions

HTTP request actions for flows on Homey by Athom
16 stars 14 forks source link

JSON Post "Unexpected token: in JSON at position 3" #32

Closed errno111 closed 5 years ago

errno111 commented 5 years ago

Hi,

I am able to run the following JSON Post from a software called Fiddler

image

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

irritanterik commented 5 years ago

Responsed with pm on Homey Community Forum