Ubidots Community

[SOLVED] Issue with POST request I am getting 400 Bad Request

Following is my POST string:

POST /api/1.6/devices/ai_thinker_a9g HTTP/1.1
HOST: http://industrial.api.ubidots.com
User-Agent: AI_THINKER_A9G/1.2
X-Auth-Token: BBFF-StCcQaZdrCzmLWqaIst5LqsMtm0JOj
Content-Type: application/json
Content-Length: 94

{“sat”: 0, “spp”: 0.000000, “spq”: 0.000000, “dip”: 0.000000, “diq”: 0.000000, “in”: 0.000000}

I always get following response:

HTTP/1.1 400 Bad Request
Server: nginx
Date: Sun, 18 Oct 2020 14:19:02 GMT
Content-Type: text/html
Content-Length: 166
Connection: close

400 Bad Request

400 Bad Request


nginx

Kindly show me what i am doing wrong here…

Solved it… Thankyou all…

I was not using v1.6 but 1.6

1 Like