I am trying to make a very simply patch request using an HTTP module in Make.com. However, I'm getting this and can't work out why:
- URL
- Request content{ "fields": { "PDF Requested": true }, "typecast": true }
- Request compressed contentfalse
- Methodpatch
- HeadersArray
- 1Collection
- NameAuthorization
- ValueBearer keyoffNKf3BVBTr7w
- 2Collection
- NameContent-Type
- Valueapplication/json
- Timeoutempty
- Use Mutual TLSfalse
- Passwordempty
- User nameempty
- Body typeraw
- Content typeapplication/json
- Serialize URLfalse
- Share cookies with other HTTP modulesfalse
- Parse responsefalse
- Follow redirecttrue
- Disable serialization of multiple same query string keys as arraysfalse
- Follow all redirectfalse
- Reject connections that are using unverified (self-signed) certificatestrue
- Bundle 1Collection
- Status code422
- HeadersArray
- Cookie headersArray
- 1AWSALB=HA7u9TAS1egeTJzD1uCdgufpkjhpW35UNtWpX1KTXq9u9oPC38wYlXSfBC3Mg01aHUYv4vtXUve1qdnCPo31ECjur8aMfS0suXN21pwZR97jcgoSboI9ykxlIoEs; Expires=Mon, 23 Oct 2023 13:37:26 GMT; Path=/
- 2AWSALBCORS=HA7u9TAS1egeTJzD1uCdgufpkjhpW35UNtWpX1KTXq9u9oPC38wYlXSfBC3Mg01aHUYv4vtXUve1qdnCPo31ECjur8aMfS0suXN21pwZR97jcgoSboI9ykxlIoEs; Expires=Mon, 23 Oct 2023 13:37:26 GMT; Path=/; SameSite=None; Secure
- 3brw=brw9wANfBLU9NABRU; path=/; expires=Wed, 16 Oct 2024 13:37:26 GMT; domain=.airtable.com; samesite=none; secure
- Data{"error":{"type":"INVALID_REQUEST_BODY","message":"Could not parse request body"}}
- fileSize82
I can easily achieve this using curl:
edwardnewton@Edwards-MacBook-Pro Downloads % curl -X PATCH \
"https://api.airtable.com/v0/appzYqJSdNkXvYunc/2023/rec1e8DfKYXPzWJev" \
-H "Authorization: Bearer xxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"PDF Requested": true
}
}'
{"id":"rec1e8DfKYXPzWJev","createdTime":"2023-10-12T00:55:02.000Z","fields":{"Name":"MOLLY SEIDEL","Finish Time":"02:23:07","Bib":114,"Pos":60,"Marathon ID":"recquo4BsycGtqNH2","recordId":"rec1e8DfKYXPzWJev","Year":"2023","Title":"THE CHICAGO MARATHON","Distance":"26.2M","Link":"https://pbposters.com/products/the-chicago-marathon?racer_id=rec1e8DfKYXPzWJev&base=appzYqJSdNkXvYunc&table=2023&title=THE%20CHICAGO%20MARATHON&racer_name=MOLLY%20SEIDEL&bib=114&distance=26.2M&finish_time=02%3A23%3A07&pos=60&race_name=THE%20CHICAGO%20MARATHON&year=2023","PDF Requested":true}}%
Has anyone got any ideas or how to debug?