hi all, I provided an external suitelet, available...
# suitescript
d
hi all, I provided an external suitelet, available without login to a third party as wehbook. The 3rd party will post data to my suitelet, they encounter error 405 Method not allowed, I'm aware it's because the headers that they send don't match what Netsuite requires. They send
User-Agent = Ruby
while Netsuite requires it to be
User-Agent = Mozila/5.0
Unfortunately they are not able to change their headers, is there any alternative, solution or workaround for this ?
g
yeah there are scenarios where netsuite won’t bend — you might need to look into a “proxy” for this use-case. also lots of benefits to having something that automatically adds in auditing, retries, exceptions, etc for essentially no extra cost some options (wide range of power and accessibilty here on purpose): gcp, power automate, zapier, ifttt
d
ok @Gerald Gillespie, yeah i was thinking to build own simple script as a proxy for this, but if there are any services ready, i think i better use them. I'll check on the above list of yours thanks
m
Here is an example using a Google Cloud Function. It fits well within the free tier with several hundred calls a day https://stackoverflow.com/a/58514482
d
Thanks @michoel, I will consider that as well, currently i'm trying webhookrelay.com , so far so good