Sp-dev-docs: SPO Hosted Workbench.aspx fails to load gulp-serve'd code

Created on 24 Jul 2019  路  17Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Workbench.aspx loads manifests.js using HTTPS

Observed Behavior

Screen Shot 2019-07-23 at 5 27 05 PM
Screen Shot 2019-07-23 at 5 27 19 PM

Steps to Reproduce

  1. Create new web part (I'm using SPFx 1.9.0)
  2. gulp serve --nobrowser
  3. open layouts/15/workbench.aspx
tooling fixed-next-drop bug-confirmed

Most helpful comment

OK - so we have found the problem, and have a solution. We need to figure out the best way to publish it. There was a change in how the local manifests.js file is built, and it caused an issue on the hosted workbench.

Unfortunately, our release process winds up using a codepath that bypassed this error. We've updated the steps to ensure this doesn't happen again. Will post here when we have next steps.

All 17 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

More details:
It looks like it tries to load the file twice.
First time using https and it is actually loaded.
But there there is some error and second request with http.

Screen Shot 2019-07-23 at 5 34 50 PM

Screen Shot 2019-07-23 at 5 36 14 PM

Setting "https": false in serve.json doesn't help.

Same here... I'm back to re-installing 1.8.2 on my project

i am facing the same issue . @VesaJuvonen can you help to resolve this issue?

Same problem. Since upgrade to 1.9.0 hosted workbench stopped working.

Same problem with extensions (on 1.9.0)...

Weird - I can't seem to repro this - but it is clearly affecting you. The double fetch has normally been there (legacy from V1.0).

If someone has this failing on a test tenant, and doesn't mind creating / sharing credentials with me, I can take a closer look. Otherwise I'll need to check with others. patmill at microsoft.com is my email.

Alternately, could someone post a screen shot of the network tab showing the calls?

Also - what does the command prompt look like when gulp is running? What files are being requested, etc.

And does your project do anything with webpack plug ins, etc? Does a plain hello world , no framework project work?

@patmill i can confirm that I tried with react hello world project (without adding any addition code). The issue occurred. i dont have screenshot now any as i have reverted my SPFX back to 1.8.2 again after a long day of struggle with 1.9.0 version

OK, I have found a tenant where this repros, and the same project, same code, succeeds in another tenant. They are both running the same production code as well. So on the plus side, at first glance this looks like a problem on our servers, not with the npm bits. Stay tuned.

@patmill Yes, the issue occurs with a plain, no-framework project.
image
image
image
image

Yeah, so the errors in manifests.js are a red herring. The problem is that ultimately the parsing/js loading of manifests.js doesn't happen in the error case, because the script element doesn't wind up in the DOM. Digging in further.

OK - so we have found the problem, and have a solution. We need to figure out the best way to publish it. There was a change in how the local manifests.js file is built, and it caused an issue on the hosted workbench.

Unfortunately, our release process winds up using a codepath that bypassed this error. We've updated the steps to ensure this doesn't happen again. Will post here when we have next steps.

Experiencing the same issues. Both with http and https.

Appears the temp "fix" was to pull v1.9.0... so for now, this is "fixed" as there were known issues with 1.9.0 & hosted workbench. Ref #4371

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonthenerd picture jonthenerd  路  3Comments

thechriskent picture thechriskent  路  3Comments

byrongits picture byrongits  路  3Comments

christianbueschi picture christianbueschi  路  3Comments

StfBauer picture StfBauer  路  3Comments