-
Notifications
You must be signed in to change notification settings - Fork 62
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
Baseurl path_parameter should be set on initialization #1034
Comments
@latalkdesk What would be a working example of the value of the |
When we do For instance: print(client.sites.to_get_request_information().url) <- /sites
await client.sites.get()
print(client.sites.to_get_request_information().url) <- https://graph.microsoft.com/v1.0/sites This happens because the client initial path_parameters only has The url is correct on the second call because kiota sets the baseurl when we call It seems like a bug. Thanks. |
Despite this issue was reported 1 month back, we were impacted by the equivalent issue today. Due to the release of microsoft-kiota-abstractions==1.9.1 today, we got the same exception below:
Rootcause Workaround: |
I experienced the same bug on 1.9.1 and I believe originated from the |
Describe the bug
I am trying to get
sites
usingwith_url
as first call, but an exception is thrown.Expected behavior
No exception is thrown and the count of the sites is correct.
How to reproduce
SDK Version
1.14.0
Latest version known to work for scenario above?
No response
Known Workarounds
Add
baseurl
to theclient.path_parameters
after creating the client.like so:
client.path_parameters["baseurl"] = client.request_adapter.base_url
Debug output
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: