Other object storage providers define error codes (or error names) that give more information about the error than the http codes they come with.
For example, here is a list of the error codes by some of the other providers:
Amazon S3
Azure
Google Cloud
So if you look for an object and it doesn't exists, Azure will give you this error:
Error code: BlobNotFound
Http status code: Not Found (404)
I haven't been able to find if there is something like this for Openstack or specifically Bluemix.
Do they also have error codes apart from the http status codes?
If you don't have access to SWIFT/Bluemix logs, unfortunately, you will have only the status code to help you.
However, Swift is pretty precise on its status code and most of the time you only need it to solve your problema.
If you're dealing with a specific situation, you can ask here and may be someone can help you.
Related
I'm experiencing an issue using Sophos Labs Intelix Dynamic file analysis: https://api.labs.sophos.com/doc/analysis/file/dynamic.html
For some files submitted, the API returns 202 for several minutes, then returns 404, as if the job is suddenly lost. There is no explanation or report provided. I did not experience this issue until this morning when suddenly it happened for 7 different files, although we have not made any code changes.
Why is this happening and what are we supposed to do to handle it?
Some example dynamic analysis jobIDs which now return 404: 10c37c488e86b6871c3f6224ff5273e1, bc900e7bfb8bb25e1f8f127dc25ab8fe, 48cda26c2e3cb54d0b3f4b79ac1ddb7e
Also, is this the correct forum for support requests? I am also trying to go through https://support.sophos.com/support/s/sophos-technical-support but they don't seem to have any knowledge or understanding about Intelix API. My credentials for the API don't appear to be linked to any kind of support portal?
Thanks!
As far as I checked on many swagger files of Amazon/Google and more, That error code (or generally error codes of 5xx family) is not shown as a part of the swagger files. Is their a reason for that?
I am asking because one of our microservices API returns 500 when it fails to communicate to other service (for instance) and we are wondering if that error code should be part of our swagger files.
Generally clients/consumers can't do much upon getting the 5xx errors, since those are purely server side errors. So it need not to be part of your API specification.
If you think, based on the error which the API throws, client/consumer should do something (For example retry or try another site or so.), then Yes.
I think API documentation should only contain expected errors such as 4xx ones. But 5xx are unexpected errors and should not be documented.
I am trying to consume WCF web service and get following error. Its a third party service so dont have much control over it.
I have tried making tracing work but nothing seems to work. Cant get tracing work
Error i get is
An exception of type 'System.ServiceModel.FaultException`1' occurred in mscorlib.dll but was not handled in user code
Additional information: Shared key was empty
Inner exception comes as Null and Reason is Shared Key is empty.
Has anyone came across this problem while consuming WCF web service.
Thanks
As it a third party webservice, they didn't provide me with the code which adds 'Shared Key' variable as its individual for each client.
Asked the client and they provided the code with my shared key and that fixed the problem.
http://imasters.com.br/artigo/22804/ios/trabalhando-com-json-em-aplicacoes-iphone follow this tutorial to read a JSON in my application, and works correctly except when there is not a connection to the internet .
If you have a failure during the process for applying it in time to read the JSON, sometimes when connected to WIFI iPhone takes a while to get IP if I access the application at this time also breaks the application.
How can I identify it to fix the error?
There are various ways to resolve this issue:
1: Put a check if the data is a valid JSON before you parse it.
2: Set a JSON at client end for handling Errors i.e. create a json when you receive error from network connection. & load that JSON to parse and return that JSON. So if you don't get Server response, You can give your JSON to parse.
Hope it helps.
You could use a Reacability class to make sure that you are able to connect to the website before making any requests for the JSON.
You could also use AFJSONRequestOperation which is a part of AFNetworking that is very good with error checking and won't parse invalid JSON.
I have my script email me when there is a problem creating a recurring transaction with authorize.net. I received the following at 5:23AM Pacific time:
SOAP-ERROR: Parsing
WSDL: Couldn't load from 'https://api.authorize.net/soap/v1/service.asmx?wsdl' :
failed to load external entity "https://api.authorize.net/soap/v1/service.asmx?wsdl"
And of course, when I did exactly the same thing that the user did, it worked fine for me.
Does this mean authorize.net's API is down? Their knowledge base simply sucks and provides no information whatsoever about this problem. I've contacted the company, but I'm not holding my breath for a response. Google reveals nothing. Looking through their code, nothing stands out. Maybe an authentication error?
Has anyone seen an error like this before? What causes this?
Maybe as a back up you can cache the WSDL file locally and in case of network issues use the local copy. I doubt it changes often so if you refresh it weekly that should be satisfactory as the file will probably not be stale by then.