Can I get Apache (httpd.exe) error codes? - windows

Basically I am trying to start httpd.exe from command prompt. So if any error occurs i should be able to catch the reason in codes, why it wasn't able to start. I know it already gives the exact reason but I want to display my own errors.
Is there any error codes like 0, 1, etc for httpd.exe.

The Apache Http Server is open source. If you want to know what error codes it returns, read the source code, which you can find by looking around in http://httpd.apache.org/. The official doc does not specify any error codes, so YMMV.

Related

Ruby: where does ruby log its errors (location of errors / exceptions)?

I have a simple ruby script which prints a exception message when something goes wrong.
i am unable to find where the logs are stored to check this.
any help on this would be really great.
Thanks.
There are no log files. When errors occur, the Ruby standard library will write its messages to the standard error stream. You can redirect this to a file if you'd like.
Of course, you can do whatever you want in your own code. It's absolutely possible to open a file and log messages to it. There are many logging libraries that provide this functionality.

Error getting valid response from API. Check log file for error details

I cant seem to find the error log of authorize.net api.
I have Laravel application which uses "authorizenet/authorizenet" package and the code where I try to create a customer profile, I get following error:
"Error getting valid response from API. Check log file for error details"
Can anyone tell me whereto find these logs? and what it's name?
I tried in /var/logs folder but i cant seem to find it.
if someone else has this issue, here is the solution.
The authorize.net has changed their endpoints from https://api.authorize.net to https://api2.authorize.net which is one of the possible reasons that you might get this error.
So if you are hardcoding these endpoints in your code then update it to the new one or if you are using library constant for it, same as me:
\net\authorize\api\constants\ANetEnvironment::SANDBOX
\net\authorize\api\constants\ANetEnvironment::PRODUCTION
Then simply update your library by running:
composer update authorizenet/authorizenet
This is how I resolved it and it seems to be the best way so far because it will update their library to take everything up to date if they have changes something else and you started experiencing this issue.
I hope it helps

500 Internal Server Error when logging into Magento front end?

This used to work fine but we've just moved the site from the development area to httpdocs. I've changed all relevant MySQL entries and file paths, but still we're having this error.
In the Apache error log, This is the corresponding error:
client denied by server configuration: /var/www/vhosts/website.com/httpdocs/var/www/vhosts...
It looks like it is getting the wrong path somehow, as the /var/www/vhosts is repeating.
I did try using powergrep to locate where the path is getting set, but it didn't return any results.
Is there a setting which I can specify the exact path?
First of all, check your PHP log, it will give you a detailed info about this error.
Have you checked your permissions?
The folders var and media must be writtable.
And also, could you see correctly the homepage, categories and the error only appears when you log in?
Best regards.

How to get the code causing an issue in SonarQube or a link to it?

Is there a way to parameter the SonarQube web service to get the line of the code causing a specific error?
For instance, if I parameter the webservice to get all the blocking issues like this:
http://localhost:9000/api/issues/search?severities=BLOCKER
the Json returned gives the line's number of the issues but not the line's code. How to have the code of those lines?
Otherwise, is there a possibility to get a link to the line causing the error?
Thank you in advance
Check out the WebAPI documentation embedded in your SonarQube server (linked at the footer). For your specific use-case you'll see that this is a good match: api/sources .

NSURLErrorDomain error -3001

I'm trying to download a file from the internet, but I get the error -3001 back. I've been searching through google but the error doesn't appear on any website, so i have no idea what it means.
Can anyone tell me what the error code "NSURLErrorDomain error -3001" means?
Thanks
There's also a full list of all NSURL error codes here. It's very handy when you get cryptic error messages from the URL loading system.
I wrote an applescript awhile back that can search the header files for error codes. You can find the applescript here.
I ran that applescript for your error code and got this from the CFNetworkError.h file.
Error Description:
kCFURLErrorCannotOpenFile
The error comes from the fact that setDestination expects a full path with a filename:
This is wrong:
[fileDl setDestination:#"/Users/ant/ebooks/" allowOverwrite:YES];
This is right:
[fileDl setDestination:#"/Users/ant/ebooks/file.epub" allowOverwrite:YES];
So the explanation is that probably you did something like I did: specify an existing folder where you intended to put the data.
PS: the dash before 3001 prevents Google from returning any results with the request: "NSURLErrorDomain error -3001", it is parsed as: "NSURLErrorDomain and error and not 3001"..

Resources