My Oracle Support Banner

Exporting And Importing Integrations Using Curl Command Fails With "500 Internal Server Error" Or "415 Unsupported Media Type" (Doc ID 2687304.1)

Last updated on JULY 09, 2020

Applies to:

Integration Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version, Runtime

While  importing ICS Integration through REST API (V1 or V2 version) it fails with error.

ERROR
-----------------------
curl -i -u user:pwd -H "Accept: application/json" -X POST -F file=@STEST_IMPORT.iar -F type=application/octet-stream https://<instance>.integration.us2.oraclecloud.com/icsapis/v1/integrations/import
HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Date: Fri, 26 Jun 2020 13:46:21 GMT
Server: Oracle-Application-Server-11g
X-ORACLE-DMS-ECID: 005eFnjCawu4yk4_rT8DyY0004BH000QDI
Set-Cookie: iscs_auth=qGTw4RMdOWODSSV9U4O4Ihy83R; path=/; HttpOnly
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
Content-Language: en

Error while retrieving the integration. [Cause: ICS-10994]; ; ICS-xxxx0[opc@AnaplanNonProd ics]$
curl -i -u user:pwd -H "Accept: application/json" -X POST -F file=@STEST_IMPORT.iar -F type=application/octet-stream https://<instance>.integration.us2.oraclecloud.com/icsapis/v2/integrations/import
HTTP/1.1 100 Continue

HTTP/1.1 415 Unsupported Media Type
Date: Fri, 26 Jun 2020 13:47:11 GMT
Server: Oracle-Application-Server-11g
Content-Length: 0
X-ORACLE-DMS-ECID: 005eFnmBgDe4yk4_rT8DyY0004BH000Nt2
Set-Cookie: iscs_auth=hNPw4dbFWrGw8451nG!415968806; path=/; HttpOnly
Content-Type: text/plain
Content-Language: en

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Import iar file using REST API

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.