Can't run the example in SPO
I am using spfx 1.6.0 and trying to use Graph API in my spfx solution.
When I run this sample, I got the following error: message:"The requested operation is part of an experimental feature that is not supported in the current environment.".
Then I try to use the deprecated GraphHttpClient in my solution and still failed because of /node_modules/@microsoft/sp-http/dist/index-internal"' has no exported member 'GraphHttpClient'
Now both MSGraphClient and GraphHttpClient are out of service, what should I try next?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 2381d26e-96c9-44de-8e4e-f70edc2db498
- Version Independent ID: f81cacee-a1cd-89dd-ee53-c84689c03917
- Content: Use the MSGraphClient to connect to Microsoft Graph
- Content Source: docs/spfx/use-msgraph.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Also for me... I am using spfx 1.6
and me
Take a look at the steps linked here (#2472)
First time when you go to the admin UI, the situation will be resolved, but that will take roughly 15 minutes to complete. So can you confirm if this issue still exists? It should be now resolved.
@VesaJuvonen where is the admin UI? Is it https://xxx-admin.sharepoint.com ?
@tsekityam yes... it's the SharePoint Admin Center. For this you'll need to get to the API management screen which is in the Preview version of the SharePoint Admin Center. This doc shows the page and process to approve API requests for deployed apps: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient#manage-permission-requests
Now I can run the example with spfx 1.7.0, but the Graph API call returns an error:
Error: Token renewal operation failed due to timeout
at Array.<anonymous> (sp-webpart-workbench-assembly_en-us_587d44d4fe881d07cae5c73c88d6ab19.js:1073)
at Object._callBackMappedToRenewStates.(anonymous function)._callBackMappedToRenewStates.(anonymous function) (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-11-02.006/1.sp-http-adal_66bfbaa6a73f5fae9c8a.js:3:7561)
at 1.sp-http-adal_66bfbaa6a73f5fae9c8a.js:3
Any idea?
P.S. I am using MSGraphClient
Getting an error on using the above example code. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph
Error: AADSTS50058: A silent sign-in request was sent but none of the currently signed in user(s) match the requested login hint. Trace ID: f70e612d-e154-4747-b547-add37d760c00 Correlation ID: 819ee0d8-7b0b-48c7-abbf-3e91331777e6 Timestamp: 2018-12-19 01:46:40Z at Array. (sp-webpart-workbench-assembly_en-nz_759e6103ee382f9a2e85f131c6949cf9.js:1067) at _callBackMappedToRenewStates.(anonymous function)._callBackMappedToRenewStates.(anonymous function) (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-12-07.005/1.sp-http-adal_7a2d498ba73bbc02778f.js:3:7561) at AuthenticationContext.handleWindowCallback (VM26401 adal.min.js:2) at parseTokenFromUrl (spfxsinglesignon.aspx:20) at onload (https://intergen1.sharepoint.com/_forms/spfxsinglesignon.aspx#error=login_required&error_description=AADSTS50058%3a+A+silent+sign-in+request+was+sent+but+none+of+the+currently+signed+in+user(s)+match+the+requested+login+hint.%0d%0aTrace+ID%3a+f70e612d-e154-4747-b547-add37d760c00%0d%0aCorrelation+ID%3a+819ee0d8-7b0b-48c7-abbf-3e91331777e6%0d%0aTimestamp%3a+2018-12-19+01%3a46%3a40Z&state=504a1ef8-9be7-466a-b185-1f3f1b942f46%7c85e59333-0277-4eed-a282-4728bc60d06c:31:38)
This should be resolved now.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues