Net::HTTPServerException 404 "Not Found"

jim dandy wrote:

I'm calling a web service using and am receiving the following error:

Net::HTTPServerException 404 "Not Found"

Can't find any documentation on this. What method throws this error? The get, or the reading of the response? I'm performing a Net::HTTP::Get.new, then reading the response.

You should be able to tell which method is resulting in that error by looking at the stack trace that gets printed underneath the error. It'll tell you which method Ruby was in when the exception occurred, and which line number in which file that was.

However, the root cause of the error is a standard 404 response from the server that's running the web service you're calling. Are you sure you've got the correct URL?

Chris