in reply to REST::Client 500 Error

Another possibility is that there may be HTTP redirection at your <end point url>.

A browser would follow that to get your data - your REST client - will likely NOT do that.
Try getting the URL with a verbose 'curl' command.

                "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"