Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: REST::Client 500 Error

by perlfan (Vicar)
on Sep 15, 2020 at 18:56 UTC ( [id://11121809]=note: print w/replies, xml ) Need Help??


in reply to REST::Client 500 Error

I am not sure what the point of this module is, you can use HTTP::Tiny in your code - curl for super easy debugging. Also, you don't need the :443 to the URL, using https in the URI is sufficient for the default. Can you connect via curl or browser? 5xx indicates server error.

Replies are listed 'Best First'.
Re^2: REST::Client 500 Error
by ty_sopw (Novice) on Sep 15, 2020 at 19:27 UTC

    I'm able to connect via browser and i do not explicitly use 443 in the URL. It's returned as part of the error my Perl program is throwing. So, if we use HTTP::Tiny, i understand it doesn't verify server identity by default; so, i assume i don't have to install any SSL certs. Is that correct?

      No, it doesn't verify ssl by default. HTTP::Tiny does require IO::Socket::SSL for connecting over SSL, however. Your Perl program is not throwing the 500, it is throwing an error because the server you're connecting to is responding with a 500 error. It's the server itself that is generating the 500.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (10)
As of 2024-04-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found