Am getting an intermittent error on a script calling an API service that has worked ok in the past - error message as follows:
Unsuccessful stat on filename containing newline at /usr/local/share/p
+erl/5.8.8/XML/Simple.pm line 939.
File does not exist: 500 read failed:
[error relating to failure of line in program reproduced in snippet be
The context is where the subroutine calling the API service fails (using XML::Simple to parse the returned object
my $response = $userAgent->request($request);
my $result = XMLin($som); # Line where failure occurs.
I'm assuming if the sub XMLin failed that the file was not found?
However, I'm not familiar with what the error message means exactly, tried googling didn't get far. What should I do to get to the bottom of this?
Also, at the moment the program crashes out if the error is encountered. Any tips on catching this particular error and continuing appreciated.