SPFx webpart hosted workbench not able to automatically login - Server not found error
Category
- [x] Question
- [ ] Typo
- [X] Bug
- [ ] Additional article idea
Expected or Desired Behavior
SPFx web part should redirect automatically to login and then loads workbench.
Observed Behavior
SPFx web part not redirecting to login page while debugging on Hosted workbench. If I login from the home page and then open the workbench then it doesn't load attach the debugger to code.
The settings of launch.json is { "name": "Hosted workbench", "type": "chrome", "request": "launch", "url": "https://Tenant/sites/Team/_layouts/workbench.aspx", "webRoot": "${workspaceRoot}", "sourceMaps": true, "sourceMapPathOverrides": { "webpack:///../../../src/": "${webRoot}/src/", "webpack:///../../../../src/": "${webRoot}/src/", "webpack:///../../../../../src/": "${webRoot}/src/" }, "runtimeArgs": [ "--remote-debugging-port=9222", "-incognito" ] }
package.json settings "dependencies": { "@microsoft/sp-core-library": "1.5.1", "@microsoft/sp-lodash-subset": "1.5.1", "@microsoft/sp-office-ui-fabric-core": "1.5.1", "@microsoft/sp-webpart-base": "1.5.1", "@pnp/common": "^1.1.2", "@pnp/graph": "^1.1.2", "@pnp/logging": "^1.1.2", "@pnp/odata": "^1.1.2", "@pnp/sp": "^1.1.2", "@types/es6-promise": "0.0.33", "@types/react": "15.6.6", "@types/react-dom": "15.5.6", "@types/webpack-env": "1.13.1", "react": "15.6.2", "react-dom": "15.6.2" }, "devDependencies": { "@microsoft/sp-build-web": "1.5.1", "@microsoft/sp-module-interfaces": "1.5.1", "@microsoft/sp-webpart-workbench": "1.5.1", "gulp": "~3.9.1", "@types/chai": "3.4.34", "@types/mocha": "2.2.38", "ajv": "~5.2.2" }
Steps to Reproduce
Update the launch.json to include the Hosted workbench url and then run gulp serve --nobrowser
Below is the error message

Thanks for your contribution! Sharing is caring.
A quick update, following to earlier to the discussion on #2253, I realized that my issue might be also related to "Unable to load manifests.json" (output below) and it seems to be. In my case though, the workbench is loading fine and nothing is running on Port 5432 or 4321. The webpart can serve properly but I cannot debug in hosted workbench. Any thoughts or hints would be helpful.
My node version is v8.11.3 and npm is 5.6.0. Also NODE_NO_HTTP2=1 is set in environment variables. I have deleted the node_modules folder and rebuild it also.
[08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@microsoft\sp-core-library". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@microsoft\sp-lodash-subset". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@types\lodash". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@types\webpack-env". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules\tslib". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@microsoft\node-core-library". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules\gulp". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@microsoft\sp-module-interfaces". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@types\es6-promise". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@types\chai". We'll try to get each manifest separately [08:21:04] [write-manifests] Unable to get "manifests.json" file for project in "****node_modules@types\mocha". We'll try to get each manifest separately
This appears to be an issue when using the --nobrowser argument with gulp serve due to a bug in SPFx. The latest version of SFPx, v1.7.1, resolved this issue.
If you are still having an issue, please verify your config with v1.7.1 and reply with additional details.
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