It's been reported through ERA but I fail to see why it would. I haven't seen it myself. The Unhandled Exception is at the Bg.exit line and i've seen both conditions without any error.
(:background_method) function onReceiveToken(responseCode, data) { var result; if (responseCode == 200) { result = { "Token" => data }; } else { result = { "httpErrorTesla" => responseCode }; } Bg.exit({ "TeslaInfo" => result }); }
If responseCode is 200, data is a dictionary of two tokens, about 2KB big. If it's not 200, then it's another number, either negative or positive. So why would Bg.exit generate an Unhandled Exception? What should I check for? Can I "try/catch" an .exit statement?