I tried using fetch API in a client script, and it...
# suitescript
c
I tried using fetch API in a client script, and it completely broke the suitelet it was attached to. I was curious if i could avoid governance of http.post calls, and I think I angered the NetSuite gods in the process. Even after reverting to previously working code, it throws an unexpected error, and it isn't logging the error on any of the scripts. I tried deleting the deployments and recreating them, still nothing. From here i guess i'll have to try deleting all of the scripts and recreating the script records. Anyone else ever deal with anything like this?
m
I haven't run into it before. Have you tried figuring out whether the Netsuite Gods require some sort of sacrifice? My guess is they may want to waste countless hours only to find out that there is nothing you can do except reach out to support.
m
I've used the fetch API from client scripts without any issue many times. I highly doubt the suitelet issue is related
c
Well that's reassuring. I've noticed a couple other weird issues as well. This all happened in sandbox, so I'm going for a refresh, and then off to support if that doesn't fix the issue.