API return error 500 with integration

Hello,
I just got a a solution with Pipedrive Integration.
And since i started i had a problem, where from time to time i have an error 500 return.

This is the Pipedrive returned errror, i have plenty of returns like this:

Resposta do Pipedrive: {“statusCode”:500,“rawEncoded”:{“type”:“Buffer”,“data”:[123,34,115,117,99,99,101,115,115,34,58,102,97,108,115,101,44,34,101,114,114,111,114,34,58,34,73,110,116,101,114,110,97,108,32,83,101,114,118,101,114,32,69,114,114,111,114,32,111,99,99,117,114,114,101,100,46,32,80,105,112,101,100,114,105,118,101,32,115,116,97,102,102,32,119,97,115,32,110,111,116,105,102,105,101,100,32,97,98,111,117,116,32,116,104,105,115,46,34,125]},“req”:{“json”:true,“multipart”:false,“data”:{“subject”:"[Atende Simples] - Atendida",“done”:1,“due_date”:“2020-07-03”,“due_time”:“13:36”,“duration”:“00:01”,“user_id”:null,“deal_id”:null,“org_id”:{“name”:“INDUSTRIA DE ALIMENTOS SILVA LTDA”,“people_count”:2,“owner_id”:9981052,“address”:“EST BELA VISTA, S/N “,“active_flag”:true,“cc_email”:“xlz@pipedrivemail.com”,“value”:3041},“type”:“call”,“note”:“Atendente: Malu
Telefone: 35998744733
https://app2.atendesimples.com/public/audios/a56eedc743e9daa56ed798b0a5920e5e"},“method”:“POST”},“headers”:{“date”:"Fri, 03 Jul 2020 13:38:25 GMT”,“content-type”:“application/json; charset=UTF-8”,“content-length”:“100”,“connection”:“close”,“set-cookie”:[”__cfduid=df7564e2611aa51172543d3e86595eb941593783504; expires=Sun, 02-Aug-20 13:38:24 GMT; path=/; domain=.pipedrive.com; HttpOnly; SameSite=Lax”],“x-correlation-id”:“2a767eae-b7e7-47ee-b589-37ef2c7dd078”,“badi”:“Routing: us-east-1=>us-east-1; Version: c2a6; Host: bari;”,“cache-control”:“no-cache”,“access-control-expose-headers”:“X-RateLimit-Remaining, X-RateLimit-Limit, X-RateLimit-Reset”,“pdtrusted-wgw-real-user-ip”:“3.236.6.221”,“x-daily-requests-left”:“0”,“x-frame-options”:“SAMEORIGIN”,“access-control-allow-origin”:"*",“x-ratelimit-limit”:“40”,“x-ratelimit-remaining”:“37”,“x-ratelimit-reset”:“2”,“x-xss-protection”:“1; mode=block”,“x-content-type-options”:“nosniff”,“strict-transport-security”:“max-age=31536000; includeSubDomains”,“cf-cache-status”:“DYNAMIC”,“cf-request-id”:“03b67f68020000cf40472b1200000001”,“expect-ct”:“max-age=604800, report-uri=”[https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct](https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\)"",“server”:“cloudflare”,“cf-ray”:“5ad101b99824cf40-IAD”,“alt-svc”:“h3-27=”:443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400"},"_error":null}

Can someone help me find the problem please?

I just ended my google drive integration because someone on the community said so, but i am not sure it should work.

Could I get some more details on this?

What endpoint are you calling, what kind of authentication is being used (OAuth? api token?)

Are you using a third party integration? Did you try to get in contact with the vendor?

It is creating an activity.
It does works. But eventually it returns that error.
It is a third party integration named atende simples. I did contacted them and they said i’m the only one with the problem and i should contact you guys because the returned error is 500.

Hi!

It seems like there are two issues. The first one is the rate limit. Based on the data you provided, it seems like you’ve reached the max amount of requests during that day x-daily-requests-left:0 (more about rate limiting here https://pipedrive.readme.io/docs/core-api-concepts-rate-limiting#section-http-headers-and-response-codes). Usually, in this case, you should get 429 status code, but here is a second issue, request payload. As far as I see from the data you sent, org_id is an object, but it can be either integer or null (https://developers.pipedrive.com/docs/api/v1/#!/Activities/post_activities). Once I tried to create an activity with org_id as an object I got the same 500 error you got.

I would recommend changing request body (fixing org_id) so you would not have this error, meantime we are working on improving this method’s response.

Please let me know if you have any questions.

2 Likes