Closed Ecss11 closed 4 years ago
Debug
After I downloaded and installed ChatBridge again and kept the conf file as the default, ChatBridge Server still did not run successfully
So I tried to use the Python command to run the file and hope to get the result. Fortunately, I successfully got the feedback
Python path\to\file [ChatBridge] Config File = ChatBridge_server.json [ChatBridge] Config File not Found [ChatBridge] Program exiting ...
Based on the information provided, it can be determined that the problem is in finding the conf file, but after I checked the source code, I didn't find any problems
Then I have a new idea, maybe this is because of the path problem, and after reading the source code, I know that a relative path is used to find the conf file, so I tried to change it to an absolute path. Fortunately, my guess was successful
But I think this is not a perfect solution, so I started to study relative and absolute paths, and their differences, and base on the wiki that a strict relative path should be written with ./ before the file, and Through in-depth study, I learned that ./ represents the current directory, and the corresponding ../ represents the parent directory of the current directory
After using these knowledge pairs and modifying the source code, ChatBridge successfully runs
Additional Information
If you are running ChatBridge for client & server in a same server, then in json file, you can change to localhost like:
"hostname": "localhost",
and because you are not using ip forward, so you can change ip addr to any you want, just make sure server port and client port are same
What Happened
When I try right click the server or client and run, ChatBridge did not start normally, but crashed, and did not give any error message
Expected behavior
After run, it should display the running status and output the log
Desktop
Client