-
Notifications
You must be signed in to change notification settings - Fork 39
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
Errors are not returned when application does not have the required scopes #32
Comments
Hi @arunpassi , You are right, the errors returned by the API are currently not being deserialized, this is a limitation of the generator and I added this to the known limitations list (last point). Also, looking at your example, you don't need to create a new client for each request, it can be reused. Let me know if you have other questions/concerns. |
Oh yes, that was a copy-paste mistake (pasted that line twice during an overlap). |
Thanks. Closing this issue as it's a known limitation we're working on. |
Hey @baywet , do you have any rough estimate by which this could be resolved? |
This one is difficult to estimate since it has multiple layers of dependencies. |
@baywet, thanks for the update. |
I was trying this sdk to query groups. The Groups().Get() api fails and returns an empty set but err is not set.
On debugging, I see http request failed with access denied as required scope for querying groups was not present. So error was returned in http request but was not propagated back to the caller.
On adding Directory.Read.All scope, it works fine and I get the groups. Problem is only not getting the error when it should be there.
The text was updated successfully, but these errors were encountered: