cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Debugging using Chrome: Websocket connection failure

info6
Node Link

Hi I'm using Windows 10, Chrome, VSCode and Neo4j Desktop 1.2.4.

I am trying to debug a web app I'm developing in VSCode using the Debugger for Chrome Extension for VSCode.

I am able to start the debugger ok and navigate to the main.html file of my web app, but when the app runs a Cypher query against the db, a Websocket connection failure results.

Uncaught (in promise) Neo4jError: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3

at https://cdn.jsdelivr.net/npm/neo4j-driver:1:398882
at new i (https://cdn.jsdelivr.net/npm/neo4j-driver:1:398962)
at a.value (https://cdn.jsdelivr.net/npm/neo4j-driver:1:407533)
at a.value (https://cdn.jsdelivr.net/npm/neo4j-driver:1:406761)
at return_nodes_and_edges (http://127.0.0.1:5501/main_functions.js:779:11)
at HTMLAnchorElement.onclick (http://127.0.0.1:5501/main.html:429:10)

This does not occur when I am not debugging my web app, ie when it runs normally.

Do I need to modify my VSCode debug config file, and if so, how?

Any help greatly appreciated.

Kind regards

1 REPLY 1

Hello,

Did you find a solution to this? I'm having the same issue when attempting to set up a https connection that uses a self certified certificate. My http connection works fine, but there seems to be something wrong with the SSL...

Thanks,

Nick