Thanks to visit codestin.com
Credit goes to github.com

Skip to content

send_document regression in 6.2.0 #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bricoed opened this issue May 15, 2024 · 3 comments
Open

send_document regression in 6.2.0 #27

bricoed opened this issue May 15, 2024 · 3 comments

Comments

@bricoed
Copy link

bricoed commented May 15, 2024

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
Copy link

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

@sealed-rayboutotte
Copy link

sealed-rayboutotte commented Jul 15, 2024

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.

@ZygimantasKoncius
Copy link

Same issue encountered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants