Questions tagged [http-status-code-502]
148 questions
0
votes
2 answers
How best to manage Cloudfront/Nginx 502 Bad Gateway errors in AWS
We have a website which is served over CloudFront. Sometime this week the origin EC2 (ECS) server crashed and for a short time it started returning 502 errors:
502 Bad Gateway | Nginx
This issue was resolved quickly, but we have had a couple of…

alexmcfarlane
- 1,016
- 2
- 13
- 33
0
votes
1 answer
Making XMLHttpRequest in Vercel
I am trying to use Vercel to query other APIs. I am able to have the Vercel server receive a query and return an appropriate value. I am also able to make the XMLHttpRequest from another js file with no trouble. The problem comes when I try to…

Will Rowe
- 71
- 8
0
votes
0 answers
ASP Classic web app times out after 2 mins no matter the setting in IIS or web.config
I'm running Classic ASP web application hosted via IIS and everything is set to timeout after 5 minutes.
httpRuntime is set to 300
Server.ScriptTimeout is set to 300
Still a request to generate an excel export which takes more than 2 minutes fails…

bigb055
- 198
- 3
- 14
0
votes
3 answers
Stopping Default IIS website causes Azure Application Gateway '502 Bad Gateway' Error for ALL websites in IIS
I'm having an issue with hosting multiple .NET websites on Windows Server/IIS and Azure Application Gateway.
We host multiple sites on a single Azure Windows VM running IIS, sitting behind Azure Application Gateway WAFv2. The VM is connected to App…

Chris Butler
- 394
- 2
- 12
0
votes
2 answers
GCP external http load balancer 502 server error:"failed_to_connect_to_backend"
I have configured a http external load balancer on GCP and all my vm instances are healthy in backend.
But when i am trying to access my server(installed on VM) from frontend static IP that is reserved at load balancer it is giving me 502 status…

moin8
- 31
- 7
0
votes
1 answer
How to proper set up HTTPS on AWS EC2?
I'm running into problems while trying to run my API that's hosted on AWS EC2 through a HTTPS protocol.
The API runs normally without the ELB setup, however, after trying to configure (I follow the recommended steps), I get the 502 Bad Gateway…

Gilson Viana
- 723
- 1
- 8
- 13
0
votes
2 answers
Angular CORS Issue - Querying an endpoint every 5 seconds
I have an angular application which is querying a node/express backend endpoint every 5 seconds. However, occasionally i am getting a cors error.
Usecase
A user creates a transaction. The transaction gets added to the database with the status of…

Kay
- 17,906
- 63
- 162
- 270
0
votes
2 answers
Angular $HTTP: CORS issues
I keep getting a 502 error when I do a call to my API point using $http in angular.
The exact error says this:
Failed to load https://xxxxxxxxx.execute-api.eu-west-2.amazonaws.com/dev/api/fund: No 'Access-Control-Allow-Origin' header is present on…

0xtuytuy
- 1,494
- 6
- 26
- 51
0
votes
1 answer
Angular client request to the back-end API cannot pass Access control check
I have an angular 6 client that sends a request to a separate ASP.NET Core API, with the following configuration in the startup.cs file:
in ConfigureServices method:
services.AddCors(options =>
{
options.AddPolicy(
"MyPolicy",
…

Uentee
- 783
- 1
- 7
- 15
0
votes
1 answer
CORS request 405 status code
Hello everyone please help me about my CORS problem
Im creating an API request from another domain my code below with an error,
var headers = {
host: host,
path: url + instance + '?action=reset',
method: 'POST'
};
var…

Blitsz01
- 11
- 1
- 4
0
votes
1 answer
CORS issue with localhost and put method
I'm trying to make a CORS requests to communicate between my client and server placed in two different domain.
The server headers has been set to the following -
Access-Control-Allow-Headers:Content-Type, Authorization, Content-Length,…

Prithviraj Mitra
- 11,002
- 13
- 58
- 99
-1
votes
1 answer
Getting 502 on Vue3 with Axios
I try to send an axios request via
submitForm(){
axios.post(process.env.VUE_APP_BASEURL+'/api/auth/signinout.php',{usern:this.usern,passw:this.passw})
.then(res=> {
console.log(res.data);
})
.catch((error) => {
…

Peter
- 45
- 7
-2
votes
1 answer
502 error and CORS problems at copied sites
There is a ASP.NET Core API service site and an ASP.NET Core Angular site on IIS. They are works perfectly.
I had to modify a few things in them and I created another two sites with different names and host names to test the modifications. These…

sada
- 584
- 2
- 8
- 25