Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: read database 500 error

by Bod (Parson)
on Aug 08, 2021 at 21:31 UTC ( [id://11135717]=note: print w/replies, xml ) Need Help??


in reply to read database 500 error

And no errors show up in my error logs and no error is displayed

That's because the script is not generating an error, the CGI environment is. As haukex says, you need to output some headers.

Simply adding:

print "Content-type: text/plain\n\n";
somewhere before you print the output should solve the problem.

Generally if you include use CGI::Carp qw(fatalsToBrowser); the only reasons for a 500 error will be that the script cannot start (permissions or other issues) or it is not printing headers first.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found