SAP Knowledge Base Article - Preview

3302919 - CPI Error: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: (none).

Symptom

For Cloud to On-premise Scenario : CPI > Cloud Connector > NW ABAP system, following error happened in CPI side:

   Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: (none).

"Response was of unexpected text/html ContentType" means the response from backend is not a expected one, hence cannot be recognized by cloud connector or CPI.

Sample traces:

- In traffic trace of cloud connector:

>>> 2023-02-16 13:27:49,073 +0000  >>> Response data for connection XXXXXX in thread XXXXXXXX
000000 | 48545450 2F312E31 20333037 2054656D 706F7261 72792052 65646972 6563740D |HTTP/1.1 307 Temporary Redirect.|
000020 | 0A646174 653A2054 68752C20 31362046 65622032 30323320 31333A32 373A3439 |.date: Thu, 16 Feb 2023 13:27:49|
000040 | 20474D54 0D0A636F 6E6E6563 74696F6E 3A204B65 65702D41 6C697665 0D0A636F | GMT..connection: Keep-Alive..co|
000060 | 6E74656E 742D6C65 6E677468 3A20300D 0A6C6F63 6174696F 6E3A2068 74747073 |ntent-length: 0..location: https|
000080 | 3A2F2F.. ........ ........ ........ ........ ........ ........ ..3A3434 |://<        hostname        >:44|
0000A0 | 3330302F 7361702F 62632F73 72742F73 63732F73 61702F7A ........ ........ |300/sap/bc/srt/scs/sap/zxxxxxxxx|
0000C0 | ........ ........ 3F736170 2D636C69 656E743D 3130300D 0A636F6E 74656E74 |xxxxxxxx?sap-client=100..content|
0000E0 | 2D747970 653A2074 6578742F 68746D6C 0D0A0D0A                            |-type: text/html....            |
<<< Response data

- In dev_icm of the backend system (or in dev_webdisp, if there is an SAP Web Dispatcher involved):

HTTP response (raw) [10/23598/1]:
HTTP/1.1 307 Temporary Redirect
date: Thu, 16 Feb 2023 13:27:49 GMT
connection: Keep-Alive
content-length: 0
location: https://<hostname>:44300/sap/bc/srt/rfc/sap/zxxxxxxxxxxx
content-type: text/html
Connection Info: role=Server, local=XXXXXX:8000, peer=XX.XX.XX.XX, protocol=HTTP


Read more...

Environment

The affected system mapping in Cloud Connector is using protocol HTTP.

The profile parameter icm/HTTP/redirect_X is set on the Web Dispatcher / backend system to redirect all connections to HTTPS (observation: this is configured by default on HEC-hosted systems!).

If the affected system mapping is already configured to use HTTPS, then additional icm/HTTP/redirect_X parameters might be present and interfering with the communication.

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP Web Dispatcher all versions

Keywords

KBA , BC-MID-SCC , SAP Cloud Connector On-Demand/On-Premise Connectivity , XX-HST-OPR , Technical Operations , BC-CST-WDP , Web Dispatcher , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.