on 2025 Feb 06 2:36 PM
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:
Request clarification before answering.
User | Count |
---|---|
60 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.