Can't save custom javascript function


I’ve been struggling with a bizarre error for the last couple of days. Mainly because my colleague running a separate instance of the same version of chirpstack (3.14 AS 3.12.3 NS) and the code we’re executing works on theirs! The only difference seems to be that I am running Nginx vs Apache2

The issue seems to be whenever I add square brackets to the function i receive the error:
index.js:581 POST 403

helpers.js:23 Uncaught (in promise) TypeError: Cannot read property ‘code’ of undefined
at r (helpers.js:23)

I’m confused by the 403 as I am global admin, and i can save codecs without square brackets.

Any ideas?


chirpstack java machine not support [] construction.