on 11-17-2020 7:28 AM
Hi everyone,
I have an external REST-Service which give me in some cases a non-standard response code, which leads to an exception in my rest-development.
The root-cause of this error is, that the ICM-Server does not know this statuscode. I can also see the error in transaction SMICM when I have a look at the log. There is my Statuscode correct displayed, but this does not help me, because it's not transported to my application.
So I ask myself, if there is a way to add this statuscodes (for example 950) to the icm, that it does not end with a dump.
Before you suggest it, it is not possible to modify the REST-Service on the other side, because it's a mainly used service and I'm not allowed to request changes.
~Florian
Unfortunately, the error is triggered in the kernel and only limited information is transferred to the application code.
Client method receive( ): raises EXCEPTIONS http_communication_failure
Client method response->get_header_fields( ): only these header fields are available, no additional/custom header fields!
Client method response->get_last_error( ) returns:
Remote Service Status Code:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The HTTP specification states the possible status codes in Section 6 of RFC 7231: "There are five values for the first digit" and then lists the values 1..5. Status codes starting with 9 therefore violate the HTTP standard and are not accepted by the ICM.
Since you exclude changing the behavior of the service the only thing that comes to my mind is using a reverse proxy that rewrites the status code. You cannot use SAP Web Dispatcher here, because it applies the same criteria for valid responses.
Achim Braemer
(ICM product owner)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The German Wikipedia describes this status codes as 9xx – Proprietäre Fehler. I would think it's an error in SAP's implementation and that should be fixed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.