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

Latest version of kiota-abstractions-go and kiota-http-go makes API calls fail with context cancelled #251

Closed
abezzub opened this issue Aug 31, 2022 · 1 comment · Fixed by microsoft/kiota-http-go#22
Assignees
Labels
bug Something isn't working

Comments

@abezzub
Copy link

abezzub commented Aug 31, 2022

After upgrading kiota-abstractions-go to v0.8.2 and github.com/microsoft/kiota-http-go to v0.6.2 the following code fails with context cancelled error:

auth, _ := azure.NewAzureIdentityAuthenticationProviderWithScopes(
    azureTokenCredential{token: tok},
    linkScopes)
adapter, _ := msgraphsdk.NewGraphRequestAdapter(auth)
client =  msgraphsdk.NewGraphServiceClient(adapter)

_, err = client.Me().Get()

Screen Shot 2022-08-31 at 1 51 31 PM

When using versions kiota-abstractions-go v0.8.1 and kiota-http-go v0.5.2 the code executes successfully and I can get information about the user. I also verified I can make the API call successfully using the token from outside of SDK.

@ghost ghost added the Needs Triage 🔍 label Aug 31, 2022
@baywet baywet added bug Something isn't working and removed Needs Triage 🔍 labels Sep 1, 2022
@baywet
Copy link
Member

baywet commented Sep 1, 2022

Hi @abezzub
Thanks for using the Go SDK and for reaching out.
You are correct, we ran into a few bumps working on #176 and version 0.8.2 contains a bug, for now, please revert to 8.6.1.
We'll be pushing new versions fairly soon to implement the new feature which will address this issue as well.
Related #253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants