What is my error log telling me? - ruby-on-rails

I am trying to resolve a problem with an 3rd party application I am integrating with. Our API access was IP blocked due to a series of errors being raised because of calls we were making to the 3rd party application. After chatting to them they sent me the error that they were receiving in their logs.
A sample request sent is: [REMOVED_IP] - [REMOVED_API_TOKEN] [18/Aug/2015:12:57:42 +0000] "PUT /contacts/5016104701.json HTTP/1.1" 500 38052 "-" "Typhoeus -https://github.com/typhoeus/typhoeus" "[REMOVED_IP]".
According to them
It looks like the particular IP was hitting the url https://github.com/typhoeus/typhoeus several times. Also, we got multiple Nginx 500 Errors for that domain too.
From my understanding the log they sent me is saying that there was an internal server error (500) on their side. I have am guessing that "Typhoeus -https://github.com/typhoeus/typhoeus" is a response header. From my research that could be the effective URL being returned in the response. Something to do with redirection, but I could not find much on it.
My questions are:
Is this an error on their side? I am guessing it's an error in their application.
What is the "Typhoeus -https://github.com/typhoeus/typhoeus" in the response header?

Yes, it seems that the error is on their part.
Typhoeus -https://github.com/typhoeus/typhoeus is the default user agent.
https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus.rb#L50

Related

Connecting to Zapier doesn't working

I just move my website from Apache server to Litespeed server
I reconnect Zapier/integromat but it notices:
Error
401: Invalid response, response must be a XML. Parsed HTML response: 401 Unauthorized. 401. Unauthorized. Proper authorization is required to access this resource!. Proudly powered by Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.
Please help me what reason and how to fix this. Thank you all.
more look like a migration problem instead of the Web server. You should contact your hosting company for details. They can switch between Apache and LSWS, also check the error log for you. You may also need to provide detailed URL for your hosting company to take a look.

Asana returns spurious 500 errors with cryptic messages

I am seeing spurious HTTP 500 errors with cryptic messages. For example, doing a GET using oauth on /projects/28408740055707 I see a response body: {"errors":[{"message":"Server Error","phrase":"24 purple woodchucks wriggle fast"}]}
I've also seen it on GET /tasks/{taskId}/stories and other endpoints as well. Any thoughts on this? Thanks!
When an API call or an action within the Asana application generates a server error we generate a random phrase that corresponds so that we can easily look up logs about the issue later.
If you continue to experience 500 errors when making calls to the API we encourage you to write into api-support#asana.com and reference the error phrase along with the call that you were making so that we can try to fix the issue.
I checked for "24 purple woodchucks wriggle fast" and that specific issue seems to have been solved.

Is it possible to capture every server requests resulting in a 404?

We are currently capturing the requested URL when someone gets redirected to our 404 page. However, this does not allow us to see reports on things like broken images. Is it possible to get this information in SiteCatalyst, for example by taking the URL of every server request that received a 404 response and store it in a a variable? What would be a sensible way to go about this? I Googled and couldn't find anything
I want to be able to pull a report on every broken URL reference of a site and the page it happened on...
You can configure your webserver, says Apache, for instance, to redirect an 404 error to a specific web page, says:
ErrorDocument 404 /my_path/not_found.html
Then you can configure your dispatch inside the not_found.html, in a embedded JavaScript.
Here's how to configure apache to redirect this error request:
http://httpd.apache.org/docs/2.2/custom-error.html

status code 500 internal server error in LoadRunner

I have a web application which i need to be load tested using LoadRunner. When I record the website using vugen it works good and there is no any application bug. But when I tried to replay the script, script failed after login and while navigating to next page, say, Transaction. At the end of log, I receive error:
Action.c(252): Error -26612: HTTP Status-Code=500 (Internal Server Error)
for "http://rob.com/common/transaction
Please help me to resolve this error.
LoadRunner generates HTTP request just as your browser does, this error is the same error you would get if you would go to that URL using your browser. Error code 500 is a generic server error that is returned when there is no better (more specific error to return).
Most likely the login process requires some form of authentication which is protected against a replay attack by using some form of token. It is up to you to capture this token using Correlations in LoadRunner and replay it as the server expects. The Correlation Studio in VuGen should detect and identify the token for you but since authentication methods vary it is sometimes impossible to do this automatically and you will have to create manual correlation. Please consult the product documentation for more details on how to do it. If your website is publicly available online then post its URL and I will try to record the script on my machine.
Thanks,
Boris.
Most common reasons
You are not checking each request for a valid result being returned and using a 200 HTTP status as an assumed correct step without examining the content of what is being returned. As a result when data being returned is incorrect you are not branching the code to handle the exception. Go one to two steps beyond where your business process has come off the rails with an assumptive success and you will have a 500 status message for an out of context action occurring 100% of the time.
Missed dynamic element. Record three times. Compare the code. Address the changing components.

Error 500 in a ASP.NET MVC Application running on IIS 5 + Windows Server 2003

My page has an Ajax.BeginForm helper and when I submit this form, in localhost, I have success but, when I run the same page and try to submit my page on the server (Windows Server 2003 + IIS 5.0) I have a 500 Error.
Somebody know why this happens and how can I solve this problem?
Thanks.
HTTP Status 500 means "Internal Server Error" which would happen for a huge number of reasons (any server-side error will generally give this status).
Make sure your browser isn't set to show Friendly Http Messages and set customErrors=false in your web.config (or look in the Event Viewer). You should be able to get a full exception message/stacktrace.
There are too many things that could go wrong and cause this issue depending on what your code does (do you have incorrect connection strings, paths, or other settings in your config?) for us to guess the exact cause, but if you can provide an error message and stack trace, it'll be much easier for us to help.

Resources