-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running client/server webcam demo #24
Comments
A couple of things to debug: (1) In the terminal tab that is running the server, do you see the requests going through to the server? Are there any error messages there? (2) Are there any errors in the Javascript console? |
Thanks Justin for your prompt answer. On the server side, I do not see any errors. As you mentioned in the instruction, it seems both of them are running for ever. Here are the outputs: $th webcam/daemon.lua $python webcam/server.py On the client JS console: it says: Failed to load, error connection closed, 404 (Not Found). Probably because of the SSL authentication. But I do not know where to fix it! Btw, the ip-address I am using for my URL server works fine in case of visualization of random images assuming I replace "localhost" with that in the following address: Thanks! |
Did you by some chance start the web server using |
No, I only used: python webserver/server.py From the previous comment, I just wanted to tell you that although the error shows 404, my ip-address works fine when I use it with this command: http://server-ip:8181/view_results.html which means the server ip is correct and accessible from my client machine. So basically the only thing I can think of is SSL. For some reason I cannot see the page you showed in the instruction to manually set the server is trusted and because of that it gives the "fail to load" error. |
Hi @jcjohnson, I played a little bit more with that and here is the error that I get from the server side: $python webcam/server.py WARNING:tornado.general:SSL Error on 9 ('10.101.139.48', 63041): [SSL: HTTP_REQUEST] http request (_ssl.c:590) Does that ring a bell? Thanks! |
It works now. The problem was that I was not including the port number in the server URL. After including 5000, it worked! |
Awesome, glad to hear it! Sorry I couldn't be of more help - I don't really know what I'm doing On Tue, Aug 9, 2016 at 3:53 PM, Maryam Khademi [email protected]
|
No worries! This is an awesome work and the instruction to get the code up and running was pretty straight forward. Thanks for sharing it! |
@mkhademi Can you please elaborate on, how you fixed the issue by including the port number in the server URL ? |
I got this working. To make things clear for another person trying this out, following fixed the issue. After accepting the certificate, you can use this server url along with the port number in place of the |
I have a problem I could nail down:
According to https://stackoverflow.com/questions/37356579/python-ssl-server-reporting-tlsv1-alert-unknown-ca, it is a problem of the server accepting the browser certificate? Anyone seen this? I would install a ca, but I do not which ca is responsible now. |
Hi @jcjohnson,
I followed your instruction to run the client/server webcam demo. I was able to generate my self-signed signature on my server. When I point my client browser to the following address with SERVER_URL replaced by my server ip-address, i.e.:
https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=SERVER_URL
I see the following:
but none of the buttons work! It seems they are disabled
Even if I point my client browser directly to my server ip-address, it does not show me anything to let the browser manually know that the server is trusted. I tried with chrome, firefox and ie but neither of them worked.
I appreciate your help!
The text was updated successfully, but these errors were encountered: