Open PatrickDinh opened 10 years ago
I can add a setApiVersion()
function that explicitly sets the v2 header, but the v2 API is deprecated. You can also set your npm to pull version 0.2.x of this library to access the v2 API. Are you mixing and matching v3 and v2 API calls?
In the document, we need to set header Accept: application/vnd.urbanairship+json; version=3; However, received error when I did that {"ok":false,"error":"Could not parse request body.","error_code":40000,"details":{"error":"The key 'aps' is not allowed in this context","path":"aps","location":{"line":1,"column":9}},"operation_id":"f8cb9b60-caa3-11e3-9c7c-14feb5d31f47"}
Fix: we can delete the Accept header or change it to Accept: application/vnd.urbanairship+json; version=2;