I can't tell if I am getting this error from Retool or if Retool is simply passing the error from the Carbone API. Dev tools says I am getting the 400 error from a retool.com URL:
Here is the URL:
https://las.retool.com/api/pages/uuids/e201ec60-7891-11eb-850c-c388bce7e886/query?queryName=restRenderInvoice
This is the response I getting back (body redacted for brevity)
{
"statusCode": 400,
"error": "Bad Request",
"message": "{\"success\":false,\"error\":\"Error: Invalid JSON Web Token: Not enough or too many segments\"}",
"data": {
"success": false,
"error": "Error: Invalid JSON Web Token: Not enough or too many segments"
},
"metadata": {
"request": {
"url": "https://render.carbone.io/render/9e7d7b1fa3873ec4c66a3c78c20d0e9311692787cbf1894decfedc2e6c45a259",
"method": "POST",
"body": "{}",
"headers": {
"User-Agent": "Retool/2.0 (+https://docs.tryretool.com/docs/apis)",
"Authorization": "---sanitized---",
"carbone-version": "2",
"Content-type": "application/json",
"Content-Type": "application/json",
"X-Retool-Forwarded-For": "4.35.210.206"
}
},
"headers": {
"access-control-allow-origin": ["*"],
"access-control-expose-headers": ["X-Request-URL,Content-Disposition"],
"content-type": ["application/json"],
"date": ["Thu, 25 Mar 2021 00:57:32 GMT"],
"connection": ["keep-alive"],
"content-length": ["90"]
},
"status": 500,
"statusText": "Internal Server Error"
}
}