Questions tagged [http-status-code-500]

Use for questions where the server throws 500 Internal Server Error and the server is not in your control. For servers in your control, look through the server logs to pinpoint the actual problem

The 500 Internal Server Error is a catch-all error code that can mean literally anything. Instead, look through server logs, etc and try to pinpoint the actual problem and tag it accordingly.

The relevant section of the HTTP protocol:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

More information about codes returned from IIS 7:
http://support.microsoft.com/kb/943891

745 questions
35
votes
10 answers

The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

I know that there is some 500 Internal Server Error when I see this page, The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500 I have already set the variables display_errors: On and…
Mohan
  • 4,677
  • 7
  • 42
  • 65
18
votes
4 answers

azure error 502 - Web server received an invalid response while acting as a gateway or proxy server

I'm trying to host an azure website and tried troubleshooting for a few hours, but still keep getting the same error 502 Web server received an invalid response while acting as a gateway or proxy server. I tried enabling logging errors on azure, but…
Riz
  • 6,486
  • 19
  • 66
  • 106
14
votes
1 answer

When should I return HTTP Status Code 500 (Internal Server Error) from REST application to client?

I have seen people using the HTTP code 500 as a generic error code for all kind of error cases (server errors, http errors, code exceptions, expected record not found in DB, time-out exceptions etc). However I have also read and heard that this code…
7
votes
3 answers

Docker for windows - Internal server error

I am having a problem when running one of my solutions in Docker Desktop for Windows. I use the following dockerfile: # escape=` FROM microsoft/iis SHELL ["powershell", "-command"] # Install ASP.NET RUN Install-WindowsFeature…
7
votes
2 answers

Facebook graph API response size limiting (error code 1)

Just sharing some information I came across while testing my application. Facebook Graph API implements rate limiting as described on their documentation page. Today I was trying to retrieve the feed from CNN facebook page and I got the following…
6
votes
3 answers

Spring Boot Application not redirecting to Keycloak hosted on different server

I have created a simple application which is authenticated by Keycloak server. I have tested the application and Keycloak server on same machine and the application runs fine and redirects me to the Keycloak for respective realm client…
6
votes
3 answers

Getting 500 server error with Laravel 5.7 on Windows

I have cloned repo from git, and made composer install. Then I am starting a server, but every time I get 500 server error. Also, I tried to create a new project with composer create-project --prefer-dist laravel/laravel blog and this project…
domanskyi
  • 701
  • 1
  • 6
  • 19
6
votes
1 answer

How to use Scrapy with both Splash and Tor over Privoxy in Docker Compose

I'm trying to run a Scrapy spider with two 'extensions': Splash for rendering JavaScript, Tor-Privoxy to provide anonymity. As an example, I'm using the scraper of quotes.toscrape.com in…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
5
votes
1 answer

Keep getting CORS policy: No 'Access-Control-Allow-Origin' even with FastAPI CORSMiddleware

I am working on a project that has a FastAPI back end with a React Frontend. When calling the back end via fetch I sometimes get the following: Access to fetch at 'http://localhost:8000/get-main-query-data' from origin 'http://localhost:3000' has…
mrpbennett
  • 1,527
  • 15
  • 40
5
votes
1 answer

.htaccess error - ERR_TOO_MANY_REDIRECTS

I have this .htaccess file to redirect http:// to https:// I also did www. to root domain redirection! www. to root domain works! however https:// redirection doesn't! If I set RewriteCond %{HTTPS} on to RewriteCond %{HTTPS} off or RewriteCond…
user8529958
5
votes
2 answers

Django Internal Server 500 Error AWS Elastic-Beanstalk issue

How do I fix the Django Internal Server 500 error on an AWS eb deployed application? Do I need to change my allowed hosts in my base.py file to have the ip address of the ec2 in elasticbeanstalk? # SECURITY WARNING: keep the secret key used in…
4
votes
1 answer

Why Pgadmin gives me 500 error? _pickle.PicklingError: Can't pickle : attribute lookup Meta on wtforms.form failed

Occasionally, Pgadmin gives me the 500 error in a browser. After reloading the page, the issue disappears for a while and then comes back again. Here's the log I see while getting the error: [2022-01-21 14:35:21 +0000] [93] [ERROR] Error…
4
votes
7 answers

Django returning 500 Internal Server Error instead of index.html when Debug = False

I have a problem in my django web application in which django returns a 500 error when trying to get the index.html file. This only happens when Debug = False and it only happens with this one template. All the other templates render normally…
Diegoa87
  • 169
  • 1
  • 1
  • 13
4
votes
1 answer

errorBody with retrofit2 and kotlin

I am trying to get the error returned by a service (when starting with invalid credentials) rest api but for some reason errorBody does not catch it from my answer. The correct answer I receive without problems but when I get an error I can't solve…
4
votes
1 answer

Keycloak returns 500 / NPE URI in Spring on Docker container

I have a problem with Keycloak on my Ubuntu server. Register and login works fine. But when I try to make any request to the spring application by user bearer token, keycloak returns me 500 - Internal server error in Swagger. (Everything on…
1
2 3
49 50