Hi All ,
I am having issues with the HTTP request module creating a PATCH body for my Airtable base API. Even with an empty response ( “fields”:{} ) I am getting a 422 response. Same credentials work fine for a GET (so no issue with Auth headers) and a test to https://httpbin.org/patch responds with the expected submission “fields”: {}
Postman works fine with URL and body (empty and the variables I’d like to use) and the debug comes back with what I think is correct (although there’s some nesting of JSON in the debugger.
Details are -
HTTP Request settings (using a page parameter for the unique record)
response body recieved in Appgyver (per output 2 for 400-500 reponse)
{“error”:{“type”:“INVALID_REQUEST_BODY”,“message”:“Could not parse request body”}}
HTTPBIN response (when substituting the URL)
{“args”:{},“data”:""{\“fields\”:{}}"",“files”:{},“form”:{},“headers”:{“Accept”:“application/json”,“Accept-Encoding”:“gzip, deflate, br”,“Accept-Language”:“en-AU,en;q=0.9,en-US;q=0.8”,“Authorization”:“Bearer key___________”,“Content-Length”:“17”,“Content-Type”:“application/json”,“Dnt”:“1”,“Host”:“httpbin.org”,“Origin”:“https://preview.appgyver.com”,“Referer”:“https://preview.appgyver.com/",“Sec-Ch-Ua”:"” Not;A Brand";v=“99”, “Google Chrome”;v=“91”, “Chromium”;v=“91"”,“Sec-Ch-Ua-Mobile”:"?0",“Sec-Fetch-Dest”:“empty”,“Sec-Fetch-Mode”:“cors”,“Sec-Fetch-Site”:“cross-site”,“Sec-Gpc”:“1”,“json”:"{“fields”:{}}",“url”:“https://httpbin.org/patch”}
Debug detail for HTTPBIN
BODY
{ 3 items
“value”: string"{“fields”:{}}"
“key”: string"{“fields”:{}}"
“source”: string"str"
}
Airtable debug (that resulted in a 422 eror)
BODY
{ 3 items
“value”: string"{“fields”:{}}"
“key”: string"{“fields”:{}}"
“source”: string"str"
}
Any quick tips or help, I have already upvoted API Direct Integration feature too
Update - have moved the raw string into the Encoded_JSON formula per some foum posts, still failing
Cheers,
Paul