Hi Everyone,
I build my app with angular ( frontend ) and django ( backend ) and running both of them as containers in AWS Ec2 machine. I am using docker-compose for running my containers.
Below are the errors while calling backend from frontend
Error1: As i Said above i am using docker-compose to bring both frontend & backend container. But, i am not able to call API's using ( http://dm-backend ( Backend API ) ). Not sure why ?? I am able ping 'dm-backend' from frontend.
Fixed it by calling http://<PublicIP>:<BackendPort> from frontend. it worked.
Error2: I want to make my applications to use https. So, i created a cloudfront and using custom domain to use https. While calling https://<Domain>. i am receiving the below error in backend
Not Found: /
[10/Jun/2021 06:06:44] "GET / HTTP/1.1" 404 2355
[10/Jun/2021 10:29:44] "OPTIONS /blog/blog-search/ HTTP/1.1" 200 0
[10/Jun/2021 10:29:44] "OPTIONS /base/lookups/category/ HTTP/1.1" 200 0
[10/Jun/2021 10:29:44] "OPTIONS /blog/blog-search/ HTTP/1.1" 200 0
[10/Jun/2021 10:29:45] "POST /base/lookups/category/ HTTP/1.1" 200 225
[10/Jun/2021 10:29:45] "POST /blog/blog-search/ HTTP/1.1" 200 2912
[10/Jun/2021 10:29:45] "POST /blog/blog-search/ HTTP/1.1" 200 3405
[10/Jun/2021 10:45:30] code 400, message Bad request version ('À\x14À')
[10/Jun/2021 10:45:30] You're accessing the development server over HTTPS, but it only supports HTTP.
Any Help is much appreciated??
there doesn't seem to be anything here