Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Don't miss out on our Question of the week! You only have until tomorrow, April 18, 2024, 2 PM EST to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

http.post returns a "Illegal URL redirect"

http.post returns a "Illegal URL redirect" 

I am doing a POST request and the request fails:

"type":"error.SuiteScriptError","name":"ILLEGAL_URL_REDIRECT","message":"Illegal URL redirect"


var headers = {};

headers['Content-Type'] = 'application/x-www-form-urlencoded';

headers['Pardot-Business-Unit-Id'] = objLogin.businessUnit;

headers['Authorization'] = 'Bearer ' + objLogin.access_token;

var URL = moduleSelection(value, objLogin);

var response = https.post({

url: URL,

headers: headers,

body: payload


This request works in Postman.

I have tested changing the redirect URL from app manager to a NS URL, that also fails.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 1 (Jan-Mar 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders