cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_RESPONSE_STATUS rewrite in web dispatcher

Former Member
0 Kudos

Hi Experts

We have recently upgraded our  PI system from 7.1 EHP1

to PI 7.4.

We have encountered a problem in our Click interface. The
SOAP

receiver channels go into error when receiving a SOAP fault
response

even though the fault message is successfully processed in
PI. This

will impact our support capabilities when we go live due to
false

alarms being raised for successfully processed messages.

We are getting  HTTP 500 exception error. We want to
rewrite in Web dispatcher since we are using SAP web dispatcher.

We  have tried the below code for rewriting the HTTP
response code 500 to 200 but getting issue below error while starting the web
dispatcher.

error:

FATAL: HttpModHandlerInit: Error processing rule file
E:/usr/sap/SID/SYS/profile/HTTP_STATUS_Rules.txt: unknown operation in line 4:
>http_rewrite 200 <. See SAP note 1918448. [http_rewrite 962]

Rewrite code:

if %{HTTP_RESPONSE_STATUS} regimatch 500

http_rewrite 200

please let me know if my rewrite code is correct.

Accepted Solutions (0)

Answers (1)

Answers (1)

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

What will happen when there is an issue, the 500 error code is valid, and your rule rewrite it to "200 ok"?

I believe that the correct approach is to investigate why the 500 error is being returned even though the PI message was processed successfully, don't you think?

The first thing that you would need to find out is where the 500 error is being raised.

Can you bypass the Web Dispatcher and sent the messages to a fixed PI instance? If the issue does not occur, we will know it is the Web Dispatcher that is returning the 500 code, for some reason.

This will help us narrow down where to perform the investigation.

Regards,

Isaías

Former Member
0 Kudos

Hi Isaias,

We have already investigated and this is the bug in Click side. They informed us that they need to do the changes and it will take time to fix this.

They have given this suggestion as a work around.

for your another question, if real 500 error comes, communication channel will get fails and also we have other monitoring tool to monitor the application.

Regards,

Pawan

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Pawan,

In this case, wouldn't it be easier to disable the "500 error" monitoring that is causing you the false alerts (since you have other ways to monitor the application )?

Anyway, the issue is that the "http_rewrite" action does not exist...

Read the SAP note 2042819.

Regards,

Isaías