Chotechai Piyavongsiri,
I get the following message when using postman:
{
> "code": 400001,
> "message": "unmarshal type error:
> expected=[]types.MeasurementRequest, got=object, offset=1"
> }
>
>
>
Other than my appid and body, your screenshots match my postman entries.
Here is my body entry:
{
> "external_id": "ktxlames3",
> "name": "Lamesa, Texas",
> "latitude": 32.742908,
> "longitude": -101.965671,
> "altitude": 3004
> }
>
I have tried upper and lowercase external_id, AGL and ASL for the altitude,
and making the longitude positive (just to see), and it still returns the
above error and more specifically "Error 400 Bad Request - the request
cannot be fufilled due to bad syntax.
The only difference is my header doesn't match yours although it is
Content-type - application/json:
access-control-allow-credentials →true
access-control-allow-methods →GET, POST
access-control-allow-origin →*
connection →keep-alive
content-length →107
content-type →application/json; charset=utf-8
date →Fri, 18 Aug 2017 02:38:16 GMT
server →openresty
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.