cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Timeout error using Service Layer Script Engine

former_member464216
Discoverer
0 Likes
2,130

Dear experts

I'm doing an integration between SAP BO and an third party provider using Service Layer Script Engine, this integration uses the rollback and commit functionality from ServiceLayerContext and makes 2 IncomingPayments and 1 JournalEntry and does it well but sometimes and at a random paces it takes longer to finish procesing and this gives a timeout error to the guys in the other part of this integration.

The error that .NET gives him is: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Our script as I point out before makes 2 Incoming Payments and 1 Journal Entry and to do so it makes 2 querys to fetch data and edit the final JSON that Service Layer will consume. With this in mind is it possible to optimize resource in HANA to give a faster response with Service Layer and the Script Engine? What could determine the speed of the response?

Hoping to hear from you guys soon

Best regards

Ramon

View Entire Topic
thiago
Product and Topic Expert
Product and Topic Expert

Hi Ramón,

Have you tried increasing the proxy timeout in /usr/sap/SAPBusinessOne/ServiceLayer/conf/httpd-b1s-lb.conf?

Regards,
Thiago.

<Proxy balancer://mycluster>
	BalancerMember http://localhost:50001/b1s route=node0
	BalancerMember http://localhost:50002/b1s route=node1
	BalancerMember http://localhost:50003/b1s route=node2

	ProxySet stickysession=ROUTEID
</Proxy>

ProxyTimeout 300
<Location /balancer-manager>
	SetHandler balancer-manager
</Location>