Skip to content

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

@rkerr

Description

@rkerr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions