It’s strange because I found another error message that goes along with this:
Error Code = MalformedPOSTRequest
Message = The body of your POST request is not well-formed multipart/form-data.
RequestId = 58F6EF02E493DF36
HostID = 5E+G4pCOXqadAV/pYz1clcTfOVMXHJYlTo9s22YaYawLBJTgZ5/0X9IxOjQC80rinmI6LBv9Cqg="
But in this case there were no POST requests to Pipedrive. The only API call was a DELETE request to the “Delete an Activity” endpoint: Pipedrive API v1 Reference
And here is the code for that request:
var endpoint = pipedriveURL + "activities?ids=" + activityID + "&api_token=" + pipedriveAPIKey;
var res = await fetch(endpoint, {method: 'DELETE'});
var resBody = await res.json();