I am facing an issue in connecting to websocket. For a simple test i opened this url http://www.websocket.org/echo.html and clicked connect. I am getting error undefined.
Browser using chrome. I also tested in IE and firefox still the problem is same.
Can any one please help me whats wrong with my laptop. Till yesterday i was able to make websocket connect successfully but after my windows 10 updates now i am unable to make connection.
No sweat. ws://echo.websocket.org is down.
Related
I have a domain x.com which is running a web application
There is an MQTT server running on subdomain mqtt.x.com, with websockets / wss all set up,
Using Chrome:
If I head to https://x.com, and run this in console:
let ws = new WebSocket('wss://mqtt.x.com')
I get the following error:
WebSocket connection to 'wss://mqtt.x.com/' failed:
If I go to a completeley different domain (such as stackoverflow.com) and run the command, it works fine.
In firefox/opera/edge, no errors, and it all works fine.
Is there any way to get a more verbose error from chrome?
Or any other idea to resolve this?
Edit
Clearing cookies seemed to solve this. still not really sure why.
Clearing Cookies seemed to be the answer.
I am getting this weird prompt window from yesterday since restarting my laptop on every redirection of url or whenever I open the new tab it just pops up. Going to localhost:8080 show unauthorized. Secondly in my developers option I have started seeing following 2 errors
1 content.static.js:20 GET http://localhost:8080/contentDocumentStart.js 401 (Unauthorized)
2 GET https://dw4sx0xk0hu8c.cloudfront.net/contentDocumentStart.js 403
Kindly if anyone can help. I have searched, came across few of the tomcat solution but I don't know what is the issue or how to sign in (more importantly whats it requiring it for).
For some odd reason I tried updating chrome and restarting it several times but in vain. The thing that worked is I restarted my PC (for some new software changes to take effect). And while browsing I noticed I wasn't getting the pop up window any more on chrome. So if it happens with someone, try restarting the PC.
Normal js code (no service worker, but the app has a manifest with an empty service worker).
A simple timeout to an ajax call that's the code.
I close all chrome tabs, I close the process in task manager, no more chrome processes and yet I still get requests on my server. This happens locally and on the server, I know this because I can see the cookies sent and for which user id is needed.
Also I know that chrome is running the code because there is a date in the request and is updated as it go.
Triple checked that chrome is closed on all users and all processed in task manager.
Is not a coincidence because at this moment I have 2 different users (different chrome profiles) doing this. Also in my dev server there are a lot of users with the same behaviour.
I'm also not sure is chrome, but has to be, node.js alone can't change the time of the request.
Win 10 and Chrome Version 60.0.3112.90 (Official Build) (64-bit)
Terrible and I don't know what to do...
if I restart my node.js server all the requests stops.
Was my mistake! As I have server side rendering (with react) I forgot that the timeout was also run on the server side. The fix was to don't run any timeouts on the server side.
Thanks anyway for the answers. I was concerned how chrome was still running my js code even shut down, made no sense at all!
I just want to preview an html page in Eclipse html editor (I've tried both Luna and Mars) on Mac OS Mavericks. While running "HTTP preview" as server, the http protocol is trying to start for a few minutes, then it brings a message - " Starting HTTP Preview at localhost" has encountered a problem, Server HTTP Preview at localhost failed to start.
I am pretty sure that this is something connected with my mac, as the same html file with the same Eclipse works fine on a windows computer. I've googled for 2 days already, cannot find a similar problem anywhere. I've tried a few things that I thought might help, like pinging localhost to check its status, but nothing helps. If anyone has encountered this problem on mac, please help me.
I am trying to run UI tests on Selenium. The website runs on SSL. When using Chromedriver, after login, the page keeps on loading and shows "Establishing secure connection" and then eventually times out. Chrome also shows the yellow triangle before the URL in the browser. However, I don't see the yellow triangle when I log into the website using Chrome outside of this. I further noticed that the standard settings in Chrome are not the same as the Chrome instance that opens up when Chromedriver fires it, not sure why.
Can someone tell me what might be going on here and how I can fix the issue?
It may be chromedriver issue. Try to downgrade it. Version 2.12 helped us with similar problem.
https://sites.google.com/a/chromium.org/chromedriver/downloads