Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Library can't fetch expanded properties, doesn't handle 404 errors as well. #33

Open
vvolodin opened this issue Sep 25, 2015 · 1 comment

Comments

@vvolodin
Copy link

This is ridiculous, library literally can't do anything I need from it.

I need to get 1 user's properties including his memberOf array.
My code:

var currentUser = client.Users.GetByObjectId(currentUserObjectId).Expand(x => x.MemberOf).ExecuteAsync().Result;

First of all, this code makes a request like this one:

https://graph.windows.net/TENANTID/users/a7669d7c-2320-4d16-a0e8-b0b414b3a7bf()?$expand=memberOf&api-version=1.6

Notice the () at the end of the user id. This request results in 404 of course, because it's not a valid GUID.
What's event worse is that the library can't handle it, task never finishes.

@dkershaw10
Copy link

Sorry for the issue here. This is a known issue with how we generate the client library. We'll try and get this fixed in the next version of the client library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants