Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm using Enigma js with Node and connecting to Qlik through a websocket on one of our servers. My script loops through a list of apps and exports their data, but some apps in the list have section access that our service account does not have access to which results in an openDoc error code 5 being returned. I am trying to write my script so when that error happens it will just continue on to the next app. I am not trying to bypass the section access, just skip the apps I don't have access to!
I am calling openDoc with the .catch() method attached but it is still stopping the script based on a "UnhandledPromiseRejectionWarning". Does anyone have any insight on how I can fix this issue? The script does run successfully for all apps the account has access to. Also, on error nothing is being written to the log file.
Imports:
Code:
Error:
Figured it out. There was an issue with the string I was writing to the log file.
Figured it out. There was an issue with the string I was writing to the log file.