Hi,

I have a problem with the API when I specify the (correct) content length 
of a post request the request errors, however when I specify a 
Content-Length as content-length - 2 the request succeeds: 

e.g.

failing request

curl -X POST -H "Authorization:Bearer <JWT>" -H  
"Content-Type:application/json" -H "User-Agent: axios/0.21.4" -H 
"Content-Length: 66" -H "Accept:application/json, text/plain, */*" 
-d'{"includeGridData":true,"dataFilters":[{"a1Range":"Items!1:1"}]}' 
"https://sheets.googleapis.com/v4/spreadsheets/<SHEET_ID>/:getByDataFilter"

passing request
curl -X POST -H "Authorization:Bearer 
<JWT>" -H  "Content-Type:application/json" -H "User-Agent: 
axios/0.21.4" -H "Content-Length: 64" -H "Accept:application/json, 
text/plain, 
*/*" -d'{"includeGridData":true,"dataFilters":[{"a1Range":"Items!1:1"}]}' 
"https://sheets.googleapis.com/v4/spreadsheets/<SHEET_ID>/:getByDataFilter"

Does anyone have an idea why this would be?

Thanks,

Cameron

-- 
You received this message because you are subscribed to the Google Groups 
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-spreadsheets-api/8df22dd1-8d8f-481f-a8b2-82ff580c41f0n%40googlegroups.com.

Reply via email to