GithubHelp home page GithubHelp logo

redboxllc / bugsnag-roku Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 6.0 76 KB

Bugsnag library for Roku

License: Apache License 2.0

Brightscript 99.47% Shell 0.53%
bugsnag roku brightscript crash-reporting

bugsnag-roku's People

Contributors

darktasevski avatar iperzic avatar milosrasic avatar snackycracky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bugsnag-roku's Issues

Instructions not working

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")

ResponseModel - Type mismatch for the data field

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)

Integrate bslint

We can make use of linting for this project, I think that integrating bslint wouldn't be much effort.

App crashing if error happens before the session is initialized

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.