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
-1
votes
2 answers

Exception is always thrown by httpClient.PostAsync. I can temporarily get past it with ConfigureAwait(false) but I can't avoid an exception completely

I am doing Async and Await with C# ASP.Net MVC, with Target .Net Framework 4.8 using Visual Studio 2022. So no matter what, I always get an exception when I call httpClient.PostAsync(...). I can call httpClient.PostAsync(...).ConfigureAwait(false)…
-1
votes
2 answers

Java - Check if URL is valid

Need: To check if URL is valid or not (i.e. return status code - 200) Research: I checked the following threads here - Link1, Link2, Link3 Issue: I tried the solutions provided in those links, but does not work seem to work for these URL's whose…
iCoder
  • 1,406
  • 6
  • 16
  • 35
-1
votes
1 answer

I am getting 500 Internal server error in jmeter

Getting 500 internal server error code. At the last line of the above snapshot, one can see that ${unique_id_up_1} is not getting passed as the id, it is getting passed as it is, that is the reason i am getting 500 error response. I extracted it…
-1
votes
1 answer

500 Internal Server Error on flask when trying to render profile page

I am trying to build a small flask application with a login, profile, and chat page. But I keep running into the ___ when I try clicking on the profile page. I can't really locate my problem, but as for as Im concerned that is the only part not…
Achilles
  • 46
  • 7
-1
votes
1 answer

Why does my page error when I add an IF statement?

I am new to coding and new to Bootstrap. I'm encountering a problem with the Bootstrap Navbar, all goes well until I try to use consecutive IF statements that check the Session and show or don't show specific menu items. I have a function…
FreddyNL
  • 1
  • 1
-1
votes
1 answer

POSThttp://localhost:3000/ [HTTP/1.1 500 Internal Server Error 197ms]

this is my backend cors() middleware and cors() doesb't change for me abything and i tru post with postman it work but when i use my front-end to post(add teacher) throw to error const express = require("express"); const app = express(); const…
Hi Chem
  • 48
  • 6
-1
votes
2 answers

Laravel 9 on IIS returns 500 server error when "php artisan serve" on same server works

I am trying to deploy a Laravel 9 site onto an IIS Server (and no, I don't have the option of using a Linux server). If I run the local server setup with "php artisan serve", it works fine through 127.0.0.1 on the server, including all calls to the…
-1
votes
1 answer

POST to phpspreadsheet

I have a problem with phpspreadsheet. I need to pass data to a php file generating an excel file. I can do it with a window.location.href='pagegeneratingexcel.php?parameter=parvalue'; In the pagegenerating excel I can easily retrieve the…
Nicola
  • 101
  • 1
  • 9
-1
votes
1 answer

Python Flask doesn't serve custom 500 template/return on IIS

I am using Flask and blueprints on IIS. My issue is that when the 500 error is triggered it loads the default IIS 500 template and not what I want. I've tried several things and this is where I am. I have the following code from flask import…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
-1
votes
2 answers

Access to XMLHttpRequestfrom origin has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

I am calling an API (asp.net web api) from Angular 9 but sometimes I am getting Cross origin error. The debugger is hitting the API method and it returns the values as expected but in the browser I am getting 500 status with…
Chitta
  • 185
  • 2
  • 15
-1
votes
1 answer

Next js with Mongodb, mongoose, and vercel deployment gives 500 error(works fine on localhost)

I am trying to deploy my next js app that uses mongodb and mongoose. Everything works fine on localhost however when I deploy to vercel I'm getting this error from the logs: I have double-checked my environment variables and everything seems fine…
-1
votes
1 answer

What else can an HTTP status code of 500 represent besides a bug?

In working with my company's web API as well as the APIs of others, I've always thought that a response code of 500 should only be returned in case of an actual server bug. If I, the user, made an error in the call, there are the 4xx codes; whereas…
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
-1
votes
1 answer

(xampp zend framework2) server responded with a status of 500 ()

I have Xampp on windows, i'm working with zend framwork 2. I have this error : localhost is currently unable to handle this request. http error 500 When i delete the code of my index.php as above and i put any think, it works, but when i let the…
-1
votes
1 answer

Create File In Directory Error500

I am trying to create a file in a directory using PHP. Both the file and folder have CHMOD: 777. I am trying to make the file to be called image_ (the file count of a directory + 1) My code is
-1
votes
1 answer

PHP-7.4 Laravel "Next ErrorException: A non well formed numeric value encountered"

When I try to open the site, the HTTP 500 error appears, and the Laravel log shows: "A non well formed numeric value encountered" PHP version: 7.4 Here's a value of $sec before casting intval(($sec / 60) % 60). Value is 60.316000 and type of this…