pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
750 stars 306 forks source link

Issue with authenticating the Graph object #3097

Closed divya-akula closed 1 month ago

divya-akula commented 1 month ago

Major Version

3.x

Minor Version Number

11.0

Target environment

SharePoint Framework

Additional environment details

I am trying to fetch a specific users data using graph object, it was working earlier , all of sudden it stopped with the issue 500 internal server on the relative url

/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=%27https://graph.microsoft.com%27&clientId=%275946b433-a39b-449c-9848-395eee57b971%27 ### Expected or Desired Behavior It should get the user as am trying on existing users ### Observed Behavior Failing with 500 Internal Server Error ### Steps to Reproduce await (graph.users.getById(originatoremail).select(...Constants.graphUserQuerySelectProperties))().then( (res)=>{ data= res; }).catch((excep)=>{ console.log(excep); }
bcameron1231 commented 1 month ago

Hi, can you show how you're instantiating your GraphFi object?

bcameron1231 commented 1 month ago

Closing this due to inactivity. If you continue to have issues please open a new issue, link to this issue, and provide any additional details available. Thanks!

github-actions[bot] commented 1 month ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.