PyPardot4 icon indicating copy to clipboard operation
PyPardot4 copied to clipboard

AttributeError raised when API responds with 500 status code

Open jrkinley opened this issue 4 years ago • 0 comments

Prospect query throws an AttributeError when it attempts to get the results from the response object... https://github.com/mneedham91/PyPardot4/blob/5b26b871b7d4f6385755b2f3737a299509659ce1/pypardot/objects/prospects.py#L21

...because the client has set it to the status code (e.g. integer) when it expects a json string: https://github.com/mneedham91/PyPardot4/blob/5b26b871b7d4f6385755b2f3737a299509659ce1/pypardot/client.py#L146

jrkinley avatar Oct 26 '20 17:10 jrkinley