Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPFx: Can't view Install Errors #872

Closed
1 of 4 tasks
AJIXuMuK opened this issue Sep 20, 2017 · 34 comments
Closed
1 of 4 tasks

SPFx: Can't view Install Errors #872

AJIXuMuK opened this issue Sep 20, 2017 · 34 comments
Labels
area:add-ins Category: SharePoint Add-in Development Model area:other Category: unknown (does not fit any other category) area:spfx Category: SharePoint Framework (not extensions related) Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. status:fixed-next-drop Issue planned to be fixed in an upcoming release. status:to-be-reviewed Issue needs to be reviewed by Microsoft for additional follow up / review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Milestone

Comments

@AJIXuMuK
Copy link
Collaborator

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

If there are any Install errors for SPFx App package they should be visible after clicking on errors count on App Details page:
screen shot 2017-09-20 at 3 29 29 pm

Observed Behavior

After clicking the link the whole content of the page disappears:
screen shot 2017-09-20 at 3 31 27 pm

Steps to Reproduce

Create some .sppkg that will throw error while installing.
I got that situation trying to deploy Command Set Extension using Feature Framework with RegistrationId="0x01" and RegistrationType="ContentType" (#871)

@GrahamMcMynn
Copy link

@AJIXuMuK - Does this still repro? It looks like chrome, can you confirm what browser you are using? Could you please send a fiddler trace of your request clicking on the "1" to grahamc at Microsoft.com?

@AJIXuMuK
Copy link
Collaborator Author

@mcmynn83 all is good now. and yup - it was Chrome.

@samir-farid
Copy link

I'm experiencing the same issue. I tried this in FireFox and Edge, but I get an empty page. Could we reopen this issue?

@GrahamMcMynn
Copy link

@samir-farid - could you send a fiddler trace of your call when you click on the 1? That will help us determine why the page isn't loading, we have not been able to investigate it because we haven't been able to repro it.

@tnubel
Copy link

tnubel commented Jul 17, 2018

I'm hitting this same issue... would be great to know what solved it for @AJIXuMuK .

@mcmynn83 - I traced the request in Chrome developer tools and what's happening is it's throwing an Access Denied error behind the scenes - the error comes from 'https://tnubel.sharepoint.com/_layouts/15/AccessDenied.aspx?Source=https://tnubel.sharepoint.com/_layouts/15/appmonitoringerrordetails.ashx?appInstanceId=d236417e-87cd-4a73-923e-9ac12fb20d2e&entryCode=3&lcid=1033&correlation=61b27b9e-00f6-6000-edc2-51d2602b2f52'

Not sure why I'm getting access denied as I'm the site collection administrator and an admin user.

@AJIXuMuK
Copy link
Collaborator Author

@tnubel I believe it was some portion of luck for me :)

@AJIXuMuK AJIXuMuK reopened this Jul 17, 2018
@GrahamMcMynn
Copy link

@tnubel - Thanks for the access denied URL. I can actually investigate that!!! The reason why you are receiving this error message is that we do a permissions check for the following permissions:
SPBasePermissions.Open |
SPBasePermissions.ViewPages |
SPBasePermissions.AddAndCustomizePages |
SPBasePermissions.ManageSubwebs |
SPBasePermissions.ManagePermissions |
SPBasePermissions.BrowseDirectories |
SPBasePermissions.ManageWeb

The reason you don't have all of those permissions is that AddAndCustomizePages is removed due to noscript being enabled on that site collection. Internally we will discuss if that permission check is really necessary or not.

Thanks,
Graham

@zolem
Copy link

zolem commented Sep 5, 2018

I am having this same problem. Is there a workaround here? I am trying to develop an SPFX webpart that provisions and it is erroring out on the install. I can't see what the errors are because of this bug. Is there a log file somewhere else I can look at?

I have an app catalog on my test site collection so I can't seem to monitor the app either.

@AJIXuMuK
Copy link
Collaborator Author

AJIXuMuK commented Nov 7, 2018

Same issue again, but this time for Add in, not SPFx solution.

@gpeipman
Copy link

Same problem here. There is one install error but no way to see it. When I click on link after install error I see popup for a moment and then page goes blank.

@gpeipman
Copy link

There is request made to somewhere and it gets redirected to AccessDenied.aspx.

@good-gravy
Copy link

good-gravy commented Jan 14, 2019

You can avoid the error if you enable custom site scripts. Using the powershell script below you can toggle the setting on/off.

To avoid the error:

Connect-SPOService -Url $tenantUrl
Set-SPOSite -Identity $siteUrl -DenyAddAndCustomizePages $false
Disconnect-SPOService 

To return to default setting:

Connect-SPOService -Url $tenantUrl
Set-SPOSite -Identity $siteUrl -DenyAddAndCustomizePages $true
Disconnect-SPOService 

@andrewconnell
Copy link
Collaborator

This still an issue? I'm going back through old issues and making sure they are appropriately closed/labeled/visibility raised if necessary

@andrewconnell andrewconnell added area:other Category: unknown (does not fit any other category) Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jan 22, 2019
@gpeipman
Copy link

It is still issue. It seems to come down to users who can add apps but who are not tenants admins.

@patmill
Copy link
Contributor

patmill commented Jan 24, 2019

Alternately, can you go to the app / solution list, customize the view, and add the error column?

@msft-github-bot msft-github-bot added the no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP. label Jan 31, 2019
@msft-github-bot
Copy link
Collaborator

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

@AJIXuMuK
Copy link
Collaborator Author

Why do you need author feedback if there is an ongoing conversation happening?
Yes, I experience that issue as well. It's not a priority for now but I'm sure that issues shouldn't be automatically closed.

@msft-github-bot msft-github-bot added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP. Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jan 31, 2019
@andrewconnell
Copy link
Collaborator

@AJIXuMuK it's just an automated bot doing that... Needs:AuthorFeedback is waiting for the OP to comment since they are the one who opened the issue. If they don't chime in, the automated closing process kicks in after 7d marking it stale, then closing if no more action happens in 14d... but if the OP does chime in (as you did here), you can see the bot jumped back in and removed that label.

Looking back, it seems I might have labeled it incorrectly/prematurely... my bad...

@AJIXuMuK
Copy link
Collaborator Author

Yup, I saw that it is done by bot. I just think that automation flow might be changed a bit to take into consideration ongoing conversation. But it's off-topic )

@andrewconnell andrewconnell added type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. internal:priority labels Feb 1, 2019
@andrewconnell
Copy link
Collaborator

Any idea @VesaJuvonen @patmill ? Seems to be incorrect behavior...

@JackWaayerSysdoc
Copy link

If you inspect the DOM, you can see that the opacity of the body element has been set to 0. Set that to 1 and you should hopefully see the error window. Don't ask me why it sets the body tag to 0 opacity haha. Hope this helps someone.

@chntn
Copy link

chntn commented Oct 15, 2019

I set body element opacity to 1 and it's showing a Request Access form. When we click on the
Request Access button it's shows "Sorry, something went wrong This page has been modified since you opened it. You must open the page again" error.
InstallErrors

@Ashish1662
Copy link

Hi All,

Is there any update on this issue. Facing exactly the same when trying to add an app that uses 'ContentType' as RegistrationType and RegistrationId as CT id.

@webdevelperify
Copy link

webdevelperify commented Jan 7, 2020

Hi All,
I also faced this issue and tried to disable the "no-script" flag at the site collection level (In Office365). After that it started showing me the error page properly.

@sohailrazarizvi
Copy link

I am also facing the same issue with one the messages
GET https://waconatm.officeapps.live.com/apc/trans.gif?73269134b9db1478abb08a5f576031e2 net::ERR_FAILED

@san-goyal
Copy link

san-goyal commented Nov 8, 2020

This issue still persist.

Following pnp ps can be used as workaround -

Connect-PnPOnline -Url "https://tenant-admin.sharepoint.com"
$site = Get-PnPTenantSite -Detailed -Url "https://tenant.sharepoint.com/sites/name"
$site.DenyAddAndCustomizePages = 'Disabled'
$site.Update()
$site.Context.ExecuteQuery()
Disconnect-PnPOnline

Go back to App Details -> click on link next to "Install Errors" -> errors appear in a popup

@andrewconnell andrewconnell added status:to-be-reviewed Issue needs to be reviewed by Microsoft for additional follow up / review. and removed Needs: Microsoft Review 👓 labels Dec 4, 2020
@brianpmccullough
Copy link

Can confirm I experience this on 2020-01-26 on a Modern site collection when trying to install an app that is failing. Can also confirm that the DenyAddAndCustomizePages fix mentioned in the thread here does resolve this issue for me (I happen to also be Site Collection Admin in this particular site collection if that matters). I believe you should be able to view app installation errors in Modern site collections, without the need for this "workaround". I suspect much of the behavior is a related to the fact that many of the APP system pages still using the legacy UIs (classic UIs).

@giovanibm
Copy link

The issue on the view errors link is still happening. I have a sharepoint dev environment to work and do the permission work around, but i can't do tha same in the client's production tenant.

This need to be fixed.

@Dangerous-Mind
Copy link

This is surreal.

Four years later this is still happening...
I've found at least four reports like this one. All closed.

@good-gravy suggestion solved the problem.

@Chris-dot-net
Copy link

I am experiencing this issue only on cdn-tenants, but then the issue with blank page instead of showing error is guaranteed to happen.

@mhomol
Copy link

mhomol commented Oct 12, 2021

Issue still happening today. I am using PowerShell and PnP Core, so here is the proper command for folks who cannot get access to the Install Error

Set-PnPTenantSite -Url "https://tenant.sharepoint.com" -DenyAddAndCustomizePages:$false

@VesaJuvonen VesaJuvonen added the area:add-ins Category: SharePoint Add-in Development Model label Nov 1, 2021
@patmill patmill added the area:spfx Category: SharePoint Framework (not extensions related) label Nov 9, 2021
@patmill
Copy link
Contributor

patmill commented Nov 9, 2021

Fixing this.

@patmill patmill added the status:fixed-next-drop Issue planned to be fixed in an upcoming release. label Nov 16, 2021
@patmill patmill added this to the server 11-16 milestone Nov 16, 2021
@patmill
Copy link
Contributor

patmill commented Jan 12, 2022

This should be rolled out WW by now, closing.

@patmill patmill closed this as completed Jan 12, 2022
@ghost
Copy link

ghost commented Jan 20, 2022

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

@ghost ghost locked as resolved and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:add-ins Category: SharePoint Add-in Development Model area:other Category: unknown (does not fit any other category) area:spfx Category: SharePoint Framework (not extensions related) Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. status:fixed-next-drop Issue planned to be fixed in an upcoming release. status:to-be-reviewed Issue needs to be reviewed by Microsoft for additional follow up / review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests