PandaDoc / pandadoc-api-python-client

The Official PandaDoc Python client SDK
https://developers.pandadoc.com/reference/about
MIT License
19 stars 4 forks source link

send_document regression in 6.2.0 #27

Open bricoed opened 5 months ago

bricoed commented 5 months ago

We upgraded to 6.2.0 yesterday and the send_document API call began to fail with:

ApiTypeError: Invalid type for variable 'id'. Required value type is str and passed type was int at ['received_data']['recipients'][0]['id']

Looks like an issue with therecipients_array that was added in 6.2.0. We had to rollback to 6.0.0

The docs have this field as an int in the response, so it is a client issue https://developers.pandadoc.com/reference/send-document

Thanks

eschnitzler commented 4 months ago

Same issue, the api responds with an int but the SDK wants a str.

sealed-rayboutotte commented 3 months ago

Same issue, I created document from template and did not fill out the redirect object and I get this error:

ApiTypeError: Invalid type for variable 'url'. Required value type is str and passed type was NoneType at ['received_data']['recipients'][0]['redirect']['url']  

If I make the exact API call using curl, everything works fine, so it is an issue processing the API response in the client SDK. Also works downgrading client to v6.1.0.

Downgrading to v6.1.0 caused this issue. So I looked for another way around my issue here. Even thou redirect doesn't seem the be required, adding it solves the issue I was having.