Skip to content
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

Using shares.by_url no longer works in version 2.5.10 #872

Closed
jmolinacruz opened this issue Jun 18, 2024 · 1 comment
Closed

Using shares.by_url no longer works in version 2.5.10 #872

jmolinacruz opened this issue Jun 18, 2024 · 1 comment
Labels

Comments

@jmolinacruz
Copy link

The following snippet works fine for 2.5.9 but stopped working for 2.5.10:

result = client.shares.by_url(path).drive_item.get().execute_query()
print(result.get_content().execute_query().value)

The result.get_content() is what raises an error for Bad Url:

Exception has occurred: ClientRequestException
('BadRequest', "Resource not found for the segment '<<file_id>>'.", '400 Client Error: Bad Request for url:

The resource path for the result is different between both versions:, shortened

  1. 2.5.9 ----> /drives/ b!2nr9 / items / <<file_id>>
  2. 2.5.10 ---> /shares/ u!aHR0cHM6 / <<file_id>>
@vgrem vgrem added the bug label Jun 18, 2024
vgrem added a commit that referenced this issue Jun 18, 2024
@vgrem
Copy link
Owner

vgrem commented Jun 26, 2024

Hi,
thank you for reporting it!
It has been addressed in 2.5.11 version.

@vgrem vgrem closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants