cancel
Showing results for 
Search instead for 
Did you mean: 

Ariba LineItemsPOCloseImport encounters ERR_FR_TOO_MANY_REDIRECTS after migrating to async-xsjs

rey2
Newcomer
0 Kudos
88

Hello Experts,

we are always encountering error ERR_FR_TOO_MANY_REDIRECTS when requesting to 
SAP Ariba LineItemsPOCloseImport api (https://s1.ariba.com/Buyer/soap/consulting-T/LineItemsPOCloseImport),
This feature is working before without the NodeJS upgrade and migration to async-xsjs even though the credentials are correct, we also try to misconfigure the credential for the authorization but this still returns the same error.

Please see the code below for your reference:

var dest = await $.net.http.readDestination("EXTERNAL_HTTP");
var client = new $.net.http.Client();
var req = new $.web.WebRequest($.net.http.POST, "");
req.headers.set("Content-Type", "application/soap+xml");
req.headers.set("Authorization", "Basic " + dest.username + ":" + dest.password);
req.setBody(soapenv);
await client.request(req, dest.host);
var response = await client.getResponse(); // -> this returns error after acquiring the response.

evidence of the error:

rey2_0-1738852025306.png

 






Accepted Solutions (0)

Answers (0)