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

msgraph-beta-sdk-python calling v1.0 endpoint instead of beta after dependency update #743

Open
rkerr opened this issue Feb 7, 2025 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@rkerr
Copy link

rkerr commented Feb 7, 2025

Describe the bug

I suspect this is tied in with the issues noted in #741 and microsoftgraph/msgraph-sdk-python#1089 around kiota changes but I'm not exactly sure how.

Basically the issue is as the title - a number of scripts using msgraph-beta-sdk-python failed after updating some of the dependencies with pip. On investigation this appears to be because the request are being directed to https://graph.microsoft.com/v1.0/ instead of https://graph.microsoft.com/beta/

microsoftgraph/msgraph-sdk-python#1089 says msgraph-core 1.2.1 fixes that particular issue, but even with 1.2.1 this one remains

Expected behavior

The requests should go to https://graph.microsoft.com/beta/

How to reproduce

A fresh install with the latest versions from pip will replicate the issue:

msgraph-beta-sdk==1.19.0
msgraph-core==1.3.1
microsoft-kiota-abstractions==1.9.2
microsoft-kiota-authentication-azure==1.9.2
microsoft-kiota-http==1.9.2
microsoft-kiota-serialization-form==1.9.2
microsoft-kiota-serialization-json==1.9.2
microsoft-kiota-serialization-multipart==1.9.2
microsoft-kiota-serialization-text==1.9.2

Nothing special needs to be done to replicate the issue - create a GraphServiceClient and either try to use it or print out path_parameters['base_url'] and you will see it is using the v1.0 endpoint and not the beta one.

SDK Version

1.19.0

Latest version known to work for scenario above?

No response

Known Workarounds

Explicitly setting the base_url to https://graph.microsoft.com/beta/

Debug output

No response

Configuration

No response

Other information

No response

@rkerr rkerr added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant