My Oracle Support Banner

Intermittent Errors "503 service unavailable"/"504 Gateway Timeout" While Calling SOAP/REST Service for Inventory Transactions (Doc ID 2591718.1)

Last updated on OCTOBER 02, 2019

Applies to:

Oracle Fusion Inventory Management Cloud Service - Version 11.13.19.04.0 and later
Oracle Fusion Inventory Management - Version 11.12.1.0.0 and later
Information in this document applies to any platform.

Symptoms

Intermittent failures to call SOAP service in this issue TransactionManagerServiceV2 or REST service.
The connections are configured with each of the SOAP/REST service and then being called/invoked from inside a integration service.
There is no particular time for the issue occurrence. Most of the transactions went fine using the services but some fail intermittently.
There is no pattern for such error occurrence.


ERROR
-----------------------
SOAP service
The complete error details is:

javax.xml.ws.WebServiceException: Error while dispatching SOAP message to the endpoint https://xyz.xy.ab6.oraclecloud.com:443/fscmService/TransactionManagerServiceV2:javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable from url https://eidn.fa.us6.oraclecloud.com/fscmService/TransactionManagerServiceV2 ===== reqeust ======== Content-Type:text/xml; charset=UTF-8 Content-Length:3707 SOAPAction:"http://xmlns.oracle.com/apps/scm/inventory/materialTransactions/pendingTransactions/transactionManagerServiceV2/insertAndProcessInterfaceRows" Authorization:***hidden***

REST service
The complete error details is:

Fault Details : <ns2:APIInvocationError
xmlns:ns2="http://xmlns.oracle.com/cloud/generic/rest/fault/REST/IssueOutPrepaidDeco"><ns2:type/><ns2:title/>
<ns2:detail/><ns2:errorCode/><ns2:errorDetails><ns2:type>http://www.w3.org/Protocols/rfc2616/rfc2616-
sec10.html#sec10.5.5</ns2:type><ns2:title>Gateway
Timeout</ns2:title><ns2:errorCode>504</ns2:errorCode>
<ns2:errorPath><![CDATA[POST
https://xyz.xy.ab6.oraclecloud.com/fscmRestApi/resources/11.13.18.05/inventoryTransactions returned a response
request status of 504 Gateway
Timeout]]></ns2:errorPath><ns2:instance><![CDATA[<HTML><HEAD>
<TITLE>Gateway Timeout - In read </TITLE> </HEAD><BODY> <H1>Gateway
Id: 33353930323239313136383739373437
Timeout</H1> The proxy server did not receive a timely response from the
upstream server.<P>
Instance ID  :  11111111
Reference #1.111111a1.11111111111.1a2b3cd
</BODY></HTML> .A 504 Gateway Timeout indicates that the proxy/edge server
did not get a response
from the upstream/origin server in a given time window. This condition could
be realized when the origin server is
down or not working properly. This is usually a temporary condition. You can
trace the cURL representation of the
request sent to the target service from the Oracle Integration Cloud server
logs. Try invoking the target service
using cURL. If the problem persists, contact the target service admin.
]]></ns2:instance></ns2:errorDetails>
</ns2:APIInvocationError> :Application Error


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Web-service TransactionManagerServiceV2 is called from external integration service
2. Intermittently the web-service call fails with following error seen in the messages.
3. Same transaction gets successful if retried again through SOAPUI


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
References


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