Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

XJS Outbound API Timeout

$
0
0

I try to send a request to HTTP destination using GET method. I do it in a loop for around 300 elements. It send an ID and the request returns some related information, which are stored in a HANA table with an specific format. (each HTTP call needs around 10-20 seconds).

The xsjob runs but in the "JOB_LOG" table is always the same error HttpClient timeout but around 200 records were delivered and stored in the HANA table with the required format.

 

I tried today to close the variable client with client.close() like in the example for JSDoc: Class: Client but now I get the error TypeError close is not a function.

 

Please do let me know, how I solve it.

 

Note: HTTP destination and xsjs file stored in same package and the xsjs code are executed from a xsjob once a day.

 

Note 2: The destination runs on the same HANA, do I call this service properly using the outbound api or should I call it in another way?

 

Best regards,

Adrian


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>