Apr-20-2023, 05:24 PM
It seems like the Flask app is not able to find the URL you are requesting, which leads to a 404 error. There could be several reasons why this is happening. Here are a few things you can try to debug the issue:
1. Check if the server is running: First, make sure that the server is running by running the command
2. Check if the cookies are correct: Double-check the contents of the cookies.json file and make sure that it contains the correct cookies for your Bing chat session. One way to do this is to open the chat in your browser and check the cookies manually.
3. Check if the URL is correct: Make sure that you are requesting the correct URL. In the tutorial, the URL is
4. Try a different browser: If the above steps don't work, try accessing the URL in a different browser. Some browsers may have security settings that prevent the cookies from being passed to the Flask app.
5. Check if the ports are open: Make sure that the ports used by the server are open and accessible from your machine. You can use a tool like
6. Check if the Flask app is serving on the correct port: Make sure that the Flask app is serving on the correct port. You can specify the port number by adding the
Hope these steps help you debug the issue.
1. Check if the server is running: First, make sure that the server is running by running the command
python server.py
and checking the output. If you see the message "Running on http://127.0.0.1:8080", it means that the server is up and running.2. Check if the cookies are correct: Double-check the contents of the cookies.json file and make sure that it contains the correct cookies for your Bing chat session. One way to do this is to open the chat in your browser and check the cookies manually.
3. Check if the URL is correct: Make sure that you are requesting the correct URL. In the tutorial, the URL is
http://localhost:8080
, but you mentioned that you are using 127.0.0.1:8080
and 192.168.1.2
. Try using the original URL mentioned in the tutorial and see if that works.4. Try a different browser: If the above steps don't work, try accessing the URL in a different browser. Some browsers may have security settings that prevent the cookies from being passed to the Flask app.
5. Check if the ports are open: Make sure that the ports used by the server are open and accessible from your machine. You can use a tool like
nmap
to check if the port is open. For example, if you are using port 8080, run the command nmap -p 8080 localhost
to check if the port is open.6. Check if the Flask app is serving on the correct port: Make sure that the Flask app is serving on the correct port. You can specify the port number by adding the
port
parameter to the app.run()
method. For example, to serve on port 8080, use app.run(port=8080)
.Hope these steps help you debug the issue.