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 gulp serve issue in workbench.html #4254

Closed
vkselvaa opened this issue Jul 8, 2019 · 22 comments
Closed

SPFx gulp serve issue in workbench.html #4254

vkselvaa opened this issue Jul 8, 2019 · 22 comments
Labels
area:tooling Category: Development tooling Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP.

Comments

@vkselvaa
Copy link

vkselvaa commented Jul 8, 2019

Can’t connect securely to this page
This might be because the site uses outdated or unsafe TLS security settings. If this keeps happening, try contacting the website’s owner.

Your TLS security settings aren’t set to the defaults, which could also be causing this error.
Try this:
Go back to the last page

As per some reference i have updated the "Use SSL 3.0" and "Use TLS 1.0" in the Internet Options, but issue not yet resolved

@msft-github-bot
Copy link
Collaborator

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

@msft-github-bot msft-github-bot added the Needs: Triage 🔍 Awaiting categorization and initial review. label Jul 8, 2019
@andrewconnell andrewconnell added area:tooling Category: Development tooling and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Jul 8, 2019
@andrewconnell
Copy link
Collaborator

Did you install the development SSL cert after creating the first project? If so, try uninstalling & reinstalling it.

@andrewconnell andrewconnell added the Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. label Jul 8, 2019
@vkselvaa
Copy link
Author

vkselvaa commented Jul 8, 2019

@andrewconnell I am doing the POC project in my end. Is it necessary to my local environment?

@msft-github-bot msft-github-bot added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jul 8, 2019
@andrewconnell
Copy link
Collaborator

Yup... it's a self-signed cert that's used to host the local server that serves up the local workbench. Because it's a self-signed cert, it's not in any machine's trusted root authority (TRA). Therefore you must manually do that first, before your browser will respect the SSL cert.

See:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment#trusting-the-self-signed-developer-certificate

@andrewconnell andrewconnell added status:answered Answer to a question. and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. labels Jul 8, 2019
@vkselvaa
Copy link
Author

vkselvaa commented Jul 9, 2019

I have done as per the instructions mentioned in the "Unable to Trust the Self-signed Development Certificate" section, but my issue not yet resolved.

@andrewconnell
Copy link
Collaborator

Need more details to better help... can you share:

  • the console output of gulp trust-dev-cert
  • the console output of gulps serve when you start up the dev experience as well as what is in the console when the workbench attempts to load?

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed status:answered Answer to a question. labels Jul 9, 2019
@andrewconnell andrewconnell reopened this Jul 9, 2019
@vkselvaa
Copy link
Author

I have faced this kind of issue, While cloning the solutions from github. here i cloned it from "https://github.com/SharePoint/sp-dev-fx-webparts.git".
But i am not facing any issue of my own development.

@msft-github-bot msft-github-bot added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jul 13, 2019
@vkselvaa
Copy link
Author

Is there anything i want update after cloning the solution from Github.

@andrewconnell
Copy link
Collaborator

Please see my last comment... #4254 (comment)

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. labels Jul 14, 2019
@dimportfolio
Copy link

@andrewconnell

I am running into what I believe is the same issue on this post. I have attached the requested console output of running GULP trust-dev-cert && serve. Please let me know if you're able to view the output & if it is what you need.

https://imgur.com/a/KVDHomA

Steps I took to remedy the issue but failed:

I attempted to follow the troubleshooting steps from the Microsoft documentation but I don't believe it applies to my situation. The NODE version I am running is 10.16. I am using 0365 and followed the steps of setting up the Office 365 tenant & Development Environment.

_Troubleshooting
SPFx Development for SharePoint Server 2016
SharePoint Server 2016 uses the SharePoint Framework (SPFx) v1.1. Around this the time of the v1.1 release, NodeJS was transitioning from NodeJS v6.x to v8.x. In this update, NodeJS introduced a change where the default changed from HTTP1 to HTTP2. For some, this caused issues with SPFx. A later version of SPFx resolved these issues, but those who are still working with SPFx v1.1 (such as those working with SharePoint Server 2016) may run into issues.

To resolve this, set the following environment variable to instruct NodeJS to use HTTP1 instead of the default HTTP2: NODE_NO_HTTP2=1.

For more information, refer to issue #1002.

Unable to Trust the Self-signed Development Certificate
In some cases, executing the command gulp trust-dev-cert, does not have the desired effect of trusting the self-signed development certificate on your machine. In rare cases such as these, you may need to delete a hidden folder that's generated in your profile folder. Locate & delete the folder /.gcb-serve-data and then try to trust the self-signed development certificate again._

@andrewconnell
Copy link
Collaborator

@dimportfolio said:

I am running into what I believe is the same issue on this post.

Please share what you are having an issue with... what is your problem / error? "I think I am getting the same issue." isn't enough info... please describe your problem. If it's not identical, please open a new issue to not fragment the issue.

@vkselvaa has been specific about the error he's having and to better understand his/her situation, he/she needs to provide more detail.

@andrewconnell
Copy link
Collaborator

@vkselvaa said:

I have faced this kind of issue, While cloning the solutions from github. here i cloned it from "https://github.com/SharePoint/sp-dev-fx-webparts.git". But i am not facing any issue of my own development.

So you're having an issue with projects in the sp-dev-fx-webparts... not with a new project?

That repo contains many sample projects provided by the community. Some are quite old and need to be updated. You run each project individually, not the repo as a whole.

If the issue is with a specific sample, then you should post the issue to that repo's issue list

@vkselvaa
Copy link
Author

vkselvaa commented Jul 15, 2019

Yes i am facing same issue for all of the cloned projects. Not sure why this error is coming "This might be because the site uses outdated or unsafe TLS security settings" and don't know how to identify the root cause of this issue as i am new to the SPFx.

Note: No issues for my new projects.

@msft-github-bot msft-github-bot added the Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. label Jul 15, 2019
@msft-github-bot msft-github-bot removed the Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. label Jul 15, 2019
@dimportfolio
Copy link

@andrewconnell

Sorry. The issue is identical because when I execute " gulp serve" The page that is provided says

"This site can't provide a secure connection"
ERR_SSL_PROTOCOL_ERROR

@andrewconnell
Copy link
Collaborator

@vkselvaa can you provide additional context? SPFx version installed, environment, Node version, specific project in that repo you are testing in that repo.

I suspect it may be because you're trying to test an older project that used an older version of SPFx that only supported Node v6 or Node v8...

@andrewconnell
Copy link
Collaborator

@dimportfolio please open a new issue... @vkselvaa is specific and it's going to be better to isolate the two. When you post it, provide as much context as possible (same stuff I just asked @vkselvaa for in my last comment).

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. labels Jul 15, 2019
@dimportfolio
Copy link

@andrewconnell Should I be opening a new issue when this is the same issue?

@andrewconnell
Copy link
Collaborator

andrewconnell commented Jul 15, 2019

@dimportfolio If it's literally the exact same (new projects work fine, cloning from the sample web parts repo fails), then no new issue needed. If it's not the exact same, yes you should create a new issue and provide as much context as possible.

@dimportfolio
Copy link

@andrewconnell Ah thank you. I guess mine applies to new projects not working.

@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 Jul 22, 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.

@msft-github-bot
Copy link
Collaborator

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

@msft-github-bot
Copy link
Collaborator

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

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:tooling Category: Development tooling Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP.
Projects
None yet
Development

No branches or pull requests

4 participants