pandadoc-api-python-client icon indicating copy to clipboard operation
pandadoc-api-python-client copied to clipboard

send_document regression in 6.2.0

Open bricoed opened this issue 1 year ago • 5 comments

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

bricoed avatar May 15 '24 17:05 bricoed

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

eschnitzler avatar Jun 27 '24 19:06 eschnitzler

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.

sealed-rayboutotte avatar Jul 15 '24 18:07 sealed-rayboutotte