Dear all,
I am trying a while now to get a response from TTN. I am trying to connect to the storage API with this get url:
https://eu1.cloud.thethings.network/api/v3/as/applications/application/packages/storage/
I am using only the header: Authorization: Bearer KEY.ETCETCETC
With my python code it works flawlessly, in Integromat it gives me a 401.
Integromat INPUT:
[
{
“ca”: null,
“qs”: ,
“url”: “https://eu1.cloud.thethings.network/api/v3/as/applications/application/packages/storage/”,
“gzip”: true,
“method”: “get”,
“headers”: [
{
“name”: “Authorization”,
“value”: “Bearer NNSXS.KEYKEYKEYKEYKEY”
}
],
“timeout”: null,
“useMtls”: true,
“authPass”: null,
“authUser”: null,
“bodyType”: null,
“shareCookies”: false,
“parseResponse”: true,
“followRedirect”: true,
“useQuerystring”: false,
“followAllRedirects”: false,
“rejectUnauthorized”: true
}
]
Integromat output:
[
{
“statusCode”: 401,
“headers”: [
{
“name”: “content-type”,
“value”: “application/json”
},
{
“name”: “referrer-policy”,
“value”: “strict-origin-when-cross-origin”
},
{
“name”: “x-content-type-options”,
“value”: “nosniff”
},
{
“name”: “x-frame-options”,
“value”: “SAMEORIGIN”
},
{
“name”: “x-request-id”,
“value”: “df659c48-a764-4d67-9b70-b3d100219754”
},
{
“name”: “x-xss-protection”,
“value”: “1; mode=block”
},
{
“name”: “date”,
“value”: “Tue, 25 May 2021 12:33:36 GMT”
},
{
“name”: “x-envoy-upstream-service-time”,
“value”: “2”
},
{
“name”: “server”,
“value”: “envoy”
},
{
“name”: “connection”,
“value”: “close”
},
{
“name”: “transfer-encoding”,
“value”: “chunked”
}
],
“cookieHeaders”: ,
“data”: {
“error”: {
“grpc_code”: 16,
“http_code”: 401,
“message”: “error:pkg/rpcmetadata:unauthenticated (the context is not authenticated)”,
“http_status”: “Unauthorized”,
“details”: [
{
“@type”: “type.googleapis.com/ttn.lorawan.v3.ErrorDetails”,
“namespace”: “pkg/rpcmetadata”,
“name”: “unauthenticated”,
“message_format”: “the context is not authenticated”,
“correlation_id”: “5679744831ad4638873ebfbab815433e”,
“code”: 16
}
]
}
},
“fileSize”: 397
}
]