redboxllc / bugsnag-roku Goto Github PK
View Code? Open in Web Editor NEWBugsnag library for Roku
License: Apache License 2.0
Bugsnag library for Roku
License: Apache License 2.0
I installed it as instructed but adding
m.top.bugsnagTask = CreateObject("roSGNode", "bugsnagroku_BugsnagTask")
m.top.bugsnagTask.setFields({
"releaseStage": "prod",
"appVersion": appVersion,
"apiKey": BUGSNAG_API_KEY
})
m.top.bugsnagTask.control = "RUN"
to my Main.brs file gives me this error
Invalid value for left-side of expression. (runtime error &he4) in pkg:/source/Main.brs(62)
Which is this line m.top.bugsnagTask = CreateObject("roSGNode", "bugsnagroku_BugsnagTask")
There is no ResponseModel in the bugsnag-roku
, so this might be a weird error for some users. I'm not really sure if we need a response model for Bugsnag notify
method at all, but if we need it, then we should add it to the repo.
BRIGHTSCRIPT: ERROR: roSGNode.AddReplace: "data": Type mismatch: pkg:/components/roku_modules/bugsnagroku/BugsnagTask.brs(368)
We can make use of linting for this project, I think that integrating bslint wouldn't be much effort.
It would be nice if we could report breadcrumbs so that we can see what happened before the error.
Bugsnag docs for the reference: https://docs.bugsnag.com/platforms/javascript/koa/customizing-breadcrumbs/#adding-manual-breadcrumbs
Seems that session can be invalid if we try to call the notify
method on app start.
Current Function:
092: event["payloadVersion"] = "4"
093:
094: resolvedSeverity = "error"
095: if (severity <> invalid and m.severities.doesExist(severity))
096: resolvedSeverity = severity
097: end if
098:
099: ' Only handled events are possible from brightscript so far
100:* m.top.session.events.handled = m.top.session.events.handled + 1
101:
102: event["session"] = m.top.session
103: event["severity"] = resolvedSeverity
104: event["severityReason"] = {
Version used: 1.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.