Microsoft365R icon indicating copy to clipboard operation
Microsoft365R copied to clipboard

`list_teams()`error

Open balthasars opened this issue 3 years ago • 1 comments

I cannot get list_teams() to work — I get an internal server error. Any idas on how to resolve this? Thanks in advance!

library(Microsoft365R)
list_teams()
#> Loading Microsoft Graph login for default tenant
#> Error in process_response(res, match.arg(http_status_handler), simplify): Internal Server Error (HTTP 500). Failed to complete operation. Message:
#> Unable to find target address.

Created on 2022-08-15 by the reprex package (v2.0.1)

balthasars avatar Aug 15 '22 15:08 balthasars

This error appears to occur when accessing a resource without the appropriate permissions/license or a personal account (see f.e. here).

Maybe the developers could consider more meaningful error messages when working with the API?

balthasars avatar Aug 29 '22 09:08 balthasars

The error message is actually straight from the underlying Microsoft Graph API; the R package just passes it through.

Since it appears you've found the source of the problem, I'm closing this. Add a comment if you're still having problems.

hongooi73 avatar Apr 18 '23 11:04 hongooi73