Share the http call that’s causing it. Could also ...
# suitescript
p
Share the http call that’s causing it. Could also be a DNS thing. Are you trying to call an internal site or something that won’t be in public DNS?
a
@PNJ Yes, that's an internal site.
Copy code
<http://http.post|http.post>({
                url: '<http://example.com>',
                headers: { 'Content-Type': 'application/json' },
                body: { data: body }
            })
p
You’re trying to call a URL on an internal site? It won’t work. UE scripts are executed on the NetSuite server
a
@PNJ can I use clientscriptmodulepath? any other idea?
k
@ali are you calling Suitelet or Restlet ?
a
it's not a netsuite endpoint
k
Did you test with any third party clients ?
Like Postman or insomnia clients
a
yes
it works fine
k
are you passing authorization ?
a
as pnj said issue is that's an internal site
👍 1
there is no authorization
k
Got it
a
any solution?
k
@Ali why don’t you use https.post ?
e
An "internal site" that is not publicly accessible from the outside will not be "seen" by Netsuite so any script running to connect using either the N/http or N/https modules will not work. You have to ensure that your "internal site" has a publicly accessible IP address so that Netsuite can connect to it.
a
I think if it is hosted outside netsuite then its not internal