Bryce
06/04/2021, 2:36 PMnlapiRequestURL
while the same request works fine using the n/https
module as well as if i do it in the console using jQuery.ajax. Does anyone know if there is some difference between the nlapiRequestURL and n/https requests that happens in the background that would be causing this to fail?
For reference these are what each of my requests look like, and in each of their scripts I have the url and headers variables exactly the same
var response = nlapiRequestURL(url, {}, headers, 'POST');
var response = https.request({
method: <http://https.Method.POST|https.Method.POST>,
url: url,
headers: headers
});
battk
06/04/2021, 2:46 PMbattk
06/04/2021, 2:46 PMBryce
06/04/2021, 2:54 PMbattk
06/04/2021, 2:58 PMbattk
06/04/2021, 2:58 PMBryce
06/04/2021, 4:19 PM