franchise
franchise copied to clipboard
connect postgresql but cann't connect
i run i Run npx [email protected] in centos6.5 machine,and i got this message. npx: 138 安装成功,用时 27.67 秒 franchise-client listening on port 14645
but in browse,the connect button is cann't use still, how to resolve it
i got the same bug, i run the franchise client and i dont get the connection
In my case it connect well to the local mysql database, but not to the remote. So some part of remote database access might be blocked.
I'm also getting a similar response when running franchise via the python simple http server start in franchise/bundle
:
Connect the Database Bridge
Run npx [email protected] in your terminal to start the franchise database bridge.
If the npx command is not found, install the latest version of node and try again.
These instructions will automatically collapse as soon as the bridge is detected.
I started the bridge, and it seems to be running fine, but the message doesn't collapse.
Restarting the franchise server after starting the bridge service has the same result: the error message is still there.
Looking in browser console, I get error:
bridge.js:26 WebSocket connection to 'ws://localhost:14645/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
The offending line is:
clientConnectorSocket = new WebSocket(BRIDGE_URL);
with line 13 of the same file setting const BRIDGE_URL = 'ws://localhost:14645';
(See also https://github.com/HVF/franchise/issues/66 .)
My server is running on 127.0.0.1 rather than localhost
. That shouldn't make a difference, right, unless there's an explicit string match going on somewhere?
If I start in franchise/
with yarn start
I get an Invalid Host header
error (see also: https://github.com/HVF/franchise/issues/61 )