Skip to content

BatchRequestBuilder url template includes extra forward slash #834

@GeorgeOG

Description

@GeorgeOG

Describe the bug

Whenever batch requests are made, I receive the following:

        APIError
        Code: 400
        message: The server returned an unexpected status code and no error class is registered for this code 400

Expected behavior

no error recieved

How to reproduce

make batch request

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

setting base url manually:

client.request_adapter.base_url = "https://graph.microsoft.com/v1.0"

Debug output

Click to expand log
<Log output here>

Configuration

No response

Other information

I believe the issue stems from the BatchRequestBuilder init, which sets
self.url_template = f"{self._request_adapter.base_url}/$batch"
but the base url includes a trailing slash already.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions