I created a simple backend server using the Rust "Nickel" framework by following the guide here: https://nickel-org.github.io/getting-started.html

I can run cargo run locally and hit the local endpoint via postman to get this response:

    message: "Hello! Sincerely, Jimbob's Rusty Nickel"

This is great, and I would like to deploy it live. I am using a micro aws ec2 instance with ubuntu 18.04 LTS. After I install cargo and run the app with cargo run I get the usual successful startup "waiting for requests" output:

Listening on
Ctrl-C to shutdown server

I have the ports for my server open with these settings:


80  tcp, ::/0      
22  tcp        
3000    tcp    
443 tcp, ::/0      
0-65535 tcp       
6767    tcp       


All All       
6767    tcp   

When I try to call to the live endpoint using either the ec2's Public DNS (IPv4) with port 6767 or the IPv4 Public IP with port 6767, I get this error response:

Could not get any response
There was an error connecting to
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.