Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
308 stars 42 forks source link

`list_teams()`error #128

Closed balthasars closed 1 year ago

balthasars commented 2 years ago

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 commented 2 years ago

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?

hongooi73 commented 1 year ago

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.