Questions tagged [http-status-code-502]

148 questions
3
votes
1 answer

No 'Access-Control-Allow-Origin' header is present - asp.net core web api targeting .net framework 4.5.1

I have a server side RESTful API that was created in c# targeting .NET Framework 4.5.1 and the CORS configuration i have does not appear to be working... public void ConfigureServices(IServiceCollection services) { services.AddCors(options…
Daz
  • 147
  • 2
  • 12
3
votes
1 answer

jQuery not sending a custom headers CORS request to node.js server, or server not receiving?

I've been struggling with this one for a whole weekend. The problem exists only when accessed through mac computers and when hosted through my nodejitsu instance, and doesn't exist on my localhost server. My application is quite typical. It has a…
Vincent Chan
  • 484
  • 1
  • 4
  • 12
2
votes
1 answer

Using a docker file on github codespaces results in 502 bad gateway

I have a fastapi python script that works on codespaces when I use the following command: uvicorn main:fast_API_app --reload The following code appears and my api's work fine: INFO: Will watch for changes in these directories:…
2
votes
1 answer

Redis connection to x.x.x.x:6379 failed - write ECONNRESET. NodeJS GCP Standard Environment

The redis get calls sometimes fails with the following error. Once this happens, as a follow through, many of the requests fail/timeout intermittently with a 502 status. { Error: Redis connection to X.X.X.X:6379 failed - write ECONNRESET at…
2
votes
1 answer

why does Nginx Proxy pass starts giving 502 error response

I have deployed an nginx container in a K8 cluster using nginx proxy_pass to proxy to few other services deployed in the same cluster but in different namespace. The proxying works fine when the container is deployed but starts giving 502 error…
2
votes
0 answers

AWS .Net Core API - How To? - configure the idle timeout of your application

We're having an issue with an AWS hosted .net core 3 application, getting intermittent 502 errors from the load balancer. The api is in a docker container and also hosts a react front-end. The issue is described well in the documentation: We also…
2
votes
2 answers

Unable to resolve CORS error on API deployed on Elastic Beanstalk

I am working on a Node.js app deployment on Elastic beanstalk. Deployment goes well. EB Health is on OK status. Logs show server runs successfully. But when I run my frontend application deployed on S3, I get CORS error. I have set CORS on S3 as…
2
votes
0 answers

Huge number of 502 and LambdaThrottling errors for low traffic Node.JS Express web site as Lambda function, behind a load balancer?

I have a Node.js (v 12.x) Express site running as a Lambda function behind a single instance of a load balancer. The load balancer is set to us-east-1a and us-east-1b. Everything is in the same region. The reason I'm using a load balancer is…
2
votes
1 answer

Cloudfront distribution pointing to S3 bucket and ELB

I am trying to configure my cloudfront distribution to route requests for mydomain.com to an S3 bucket and requests for mydomain.com/api/* to an ELB. In route 53, I have dev.mydomain.com pointing to the cloudfront distribution with an alias…
2
votes
1 answer

Express server running on Google Cloud Run returns 502 Bad Gateway when responding with 204 status code

We have an express server that runs on google cloud run. When our server attempts to respond with a HTTP status code of 204 this gets transformed into 502 Bad Gateway. I have confirmed that this is only happening in GCP. In this specific example, we…
2
votes
0 answers

ALB gives target_status_code as - (hyphen)

I have my application hosted in AWS. And I have a python application running on the ECS using gunicorn web server and the ECS is behind the load balancer (ALB). The issue that I'm facing is, I get a 502 Gateway error often from ALB. When I checked…
2
votes
0 answers

502 bad gateway on wildfly-9.01 and apache

we are using wildfly-9.01 on azure environment and using application gateway and WAF services. We observe 502 in apache log in underload and application became unresponsive. We are using following configuration. OS: centos-8(32 vcpus, 256 GiB…
mcacorner
  • 1,304
  • 3
  • 22
  • 45
2
votes
2 answers

Cloud Run/Gunicorn giving 502 error after one minute

I'm deploying a python application in Google Cloud Run that uses Gunicorn. Both my gunicorn and cloud run timeout are set to 900 seconds, which is also the timeout for Cloud Run. Strangely, when I call the function, I get a 502 error from Cloud Run…
1
vote
1 answer

Target Group gives unhealthy checks on my auto scaling instances and load balancer DNS gives 502 bad gateway

i have been struggling with trying to connect my load balancer with my auto scaling group, i have followed a Sam Meech-ward's video (link here: https://youtu.be/AmQeeB4ygZc), and i followed every step but didn't need to do HTTPS for the listeners,…
1
vote
1 answer

Cause of 502 Bad Gateway where PHP Reloaded and many child processes spawned and exited quickly

We just had an issue on 2 servers (both unrelated, beefy servers, and one not public-facing) at the same time we had 502 Gateway where I had to manually reload PHP to fix it. Looking back in the PHP logs, I noticed PHP was reloaded (trying to work…
Jonathan Bird
  • 313
  • 5
  • 19
1
2
3
9 10