WebSocket connection to 'ws://127.0.0.1:5500//ws' failed - google-chrome

I have used websocket in the past but now even if i am not using it
my browser still shows me this error whenever i open any web page on any host
facebook, youtube, even localhost with only dummy website shows this error
reload.js:22 WebSocket connection to 'ws://127.0.0.1:5500//ws' failed:

I'm not sure but you probably are using "Live Server Web Extension" so try to disable it

Related

"WebSocket opening handshake timed out" when i try to connect to direcline.botframework.com in my chrome browser (MacOS)

I'm seeing below error when i try to connect to direcline.botframework.com in chrome browser from MacBook, but i'm able to successfully connect from other Mac machine with same configuration. I'm checked the keychain setting between 2 machine and it looks same. I'm not sure what i'm missing here.
wss://directline.botframework.com/v3/directline/conversations/<>/stream?watermark=-&t=<>' failed: WebSocket opening handshake timed out
(anonymous)
This issue is due to network problem for an individual user, this has been fixed by connecting site via correct VPN.

Is there a way to get https requests to work when calling from a localhost for testing

I'm getting the errors when testing my application locally since I switched to https:
Warning: Domain www.example.com does not specify a meta-policy.
Applying default meta-policy 'master-only'. This configuration is
deprecated. See http://www.adobe.com/go/strict_policy_files to fix
this problem.
Error: Request for resource at
https://www.example.com/?json=user/get_logged_in_user by requestor
from http://localhost:8888/Test-debug/Test.swf is denied due to lack
of policy file permissions.
I tried changing my localhost to https but got the following error:
Secure Connection Failed
An error occurred during a connection to localhost:8888. SSL received
a record that exceeded the maximum permissible length. Error code:
SSL_ERROR_RX_RECORD_TOO_LONG
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
From what I've read I can upload and add a policy file and changing secure to true but I don't want to allow calls from anywhere. Once the swf is on my server everything works fine.
Is there a way to get this to work locally for testing? Is there something that I can enable while testing like:
Security.allowDomain("localhost");
Or do I have to upload a cross domain policy and then delete that policy when I'm done testing?
Since my local site is running locally in the browser shouldn't it be able to make a connection to a https connection?
Using of https (btw it does not configured properly according to message you posted (did you use FireFox to test?)) will not help. The problem is that www.example.com does not have crossdomain.xml policy file, so flash player does not allow to access that domain from your localhots which is also a domain.
If you have an access to www.example.com add policy file here with wildcard access, if not - test via http is possible only with mocking response with some http proxy.
I changed to testing using file:// (no server) and it works making https calls.

How does chrome know when a server becomes available?

Try these steps:
Find or create a web server (Apache, Node.js, ...) that you can control
Find or create a resource to be served by said web server
Shutdown web server
Try to access a resource at that server's address in Chrome
Notice: ERR_CONNECTION_REFUSED page is shown
Start web server
Notice: Chrome automatically reloads the request.
I have two questions:
How does Chrome accomplish this? Is it just repetitively polling the server somehow?
How could I investigate this myself?
I've tried a few different google searches, but all I can find are support forums for chrome not connecting or pages being unavailable.

Chrome error after hitting back to safety on the security page

So after i hit back when seeing the message on chrome saying that my connection isnt secure on a HTTPS
now i can not access this page on my network and can only access it on my vps... is there any way I can fix this i searched all over the web and im so blown cause now i can't access my own webpage..
PS: I have tried accessing the page on another computer on the same network and i get the same error message of ERR_CONNECTION_TIMED_OUT when ever i try to go to the page, and yes i have tryed connecting on another router and the page loads fine and is a live copy of the page. please help me
Your connection is not private
Attackers might be trying to steal your information from xxxxx.com (for example, passwords, messages, or credit cards).
Back to safety Hide advanced
This server could not prove that it is (website).com; its security certificate is from server1.(website).com. This may be caused by a misconfiguration or an attacker intercepting your connection.
Proceed to (website).com (unsafe)
NET::ERR_CERT_COMMON_NAME_INVALID

Google Chrome's connection attempt to 127.0.0.1 was rejected

I am using "Oracle Database 10g Express Edition" and I am trying to start Database homepage but Google Chrome or Firefox are showing errors. Note: I am not using any proxy.The message shown in Chrome is
Google Chrome's connection attempt to 127.0.0.1 was rejected. The
website may be down, or your network may not be properly configured.
What are the possible solutions?
I had the same problem. I solved it as follows:
When opening Tomcat Application Manager from the shortcut on the Start menu, then it opened the link http://127.0.0.1:8080/manager/html which caused exactly the same error as you report
All I did was remove the :8080 from the URL and it worked