You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to send a POST request with JSON, a Bearer token, and a payload. I get "Error 400: Invalid JSON" message. I can the payload received as well as the received and decoded of the bearer/token successfully.
Are you running curl on Linux or Windows? If you are running on Windows then you:
Must use all " and no single '
To accomplish this, you need to escape all " inside the JSON payload like this: -d "{\"name\":\"Nik\",\"email\":\"[[email protected]](mailto:[email protected])\"}"
Hello everyone!
I'm trying to send a POST request with JSON, a Bearer token, and a payload. I get "Error 400: Invalid JSON" message. I can the payload received as well as the received and decoded of the bearer/token successfully.
curl -X POST https//website.com/files/folders -H "Content-Type: application/json" -d '{"name":"Nik","email":"[email protected]"}' -H "Accept: application/json" -H "Authorization: Bearer {token_info}"
Any idea what I'm missing or how to bypass this error message?
Thank you in advance;.
What is the model number of the device you're trying to control?
What firmware version(s) have you tried?
Which ESP8266 board are you using? (nodemcu, d1_mini, etc.)
Which radio type are you using? (RGBW, RGB+CCT, etc.)
Have you tried controlling the device with a physical remote?
Output of http://milight-hub.local/about and http://milight-hub.local/settings
/about
"... /about output. put between the ```s"
/settings
"... /settings output. put between the ```s"
The text was updated successfully, but these errors were encountered: