sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Can't run the example in SPO

Open tsekityam opened this issue 8 years ago • 10 comments

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.

tsekityam avatar Sep 13 '18 10:09 tsekityam

Also for me... I am using spfx 1.6

iamscottm avatar Sep 13 '18 15:09 iamscottm

and me

chrisforbesblogs avatar Sep 24 '18 13:09 chrisforbesblogs

Take a look at the steps linked here (#2472)

davidjbng avatar Sep 24 '18 15:09 davidjbng

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 avatar Oct 09 '18 17:10 VesaJuvonen

@VesaJuvonen where is the admin UI? Is it https://xxx-admin.sharepoint.com ?

tsekityam avatar Oct 10 '18 09:10 tsekityam

@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

andrewconnell avatar Nov 08 '18 10:11 andrewconnell

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

tsekityam avatar Nov 15 '18 10:11 tsekityam

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)

gagan2singh avatar Dec 19 '18 12:12 gagan2singh

This should be resolved now.

patmill avatar Dec 19 '18 19:12 patmill

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

msft-github-bot avatar Jan 26 '20 18:01 msft-github-bot