Please use the very fine ember-rollbar-client instead.
Thanks for all the help and support!
Include the Rollbar client your Ember app, and report Ember.Logger.error() to Rollbar
License: MIT License
Please use the very fine ember-rollbar-client instead.
Thanks for all the help and support!
Hello,
When using this we're getting a warning on the rollbar web that says:
rollbar.js version 1.3.0 is now available. (This project is currently using version 1.2.2).
I'm not sure if it would be possible to upgrade to this version, or is ember-cli-rollbar
completely independent from the official rollbar.js
?
What is the best way to set the person payload? Using Rollbar.configure
won't work in this case because it's not loaded in dev and test mode (issue).
Running $ ember test
with the latest 0.2.3 release now blows up with this error:
https://gist.github.com/wireframe/4b7fd3eb3b0ecb7a7af1
Hey @davewasmer - Would you be interested in deprecating this addon in favor of the other one?
I'd be willing to update the docs and add a deprecation warning, but having two of these lying around isn't ideal for the community.
Hi,
We have implemented ember-cli-rollbar with our ember app and its working fine but its not catching errors for Android build we are using ember-cli-cordova
for android build.
In our /services/logger.js
import Ember from "ember";
import config from "../config/environment";
import rollbar from 'rollbar';
export default Ember.Service.extend({
session: Ember.inject.service(),
notifyError: function(reason) {
var userName = this.get("session.currentUser.fullName");
var userId = this.get("session.currentUser.id");
var error = reason instanceof Error || typeof reason !== "object" ?
reason : JSON.stringify(reason);
var environment = config.staging ? "staging" : config.environment;
var version = `${config.APP.SHA}`;
this.notifyRollBar(error, { id: userId, username: userName, environment: environment});
},
notifyRollBar(err, log_details) {
rollbar.error(err, log_details);
}
});
When we get error on browser rollbar.error(err, log_details); send request to rollbar but when we get an error on android build Its not making request to rollbar and rollbar.notifier is null .
I have just implemented this addon, and wanted to enable it only for production environment.
I've set this in my config/environment.js like your readme says.
In my application I'm importing rollbar to set the person and throw custom logs.
Everything is working fine if I run my application in the environment where rollbar is enabled (so in this case production
). But if I want to run my application in the staging
or development
environment, I'm getting the follow error:
Uncaught Error: Could not find module `rollbar` imported from ...
Apparently I can't import the rollbar instance, so my app is bugging when rollbar is disabled. How did you guys handle this?
Is there a way to set the log level to just Error.
I have a bunch of Deprecations (waiting for libraries) and would like
to exclude these to rollbar.
rollbar: {
accessToken: 'MY_CODE',
enabled: environment !== 'development',
captureUncaught: true,
logLevel: 'error',
payload: {
environment: environment
}
I was hoping we could add logLevel but its not used.
Rollbar's cloudfront link is now permanently redirected to a cdnjs cloudflare link(see screenshot). This is causing CORS errors in our app.
Rollbar.js v1.5 just dropped today.
From the changelog:
v1.5.0
- Published rollbar.js to npmjs.com as rollbar-browser. (pr#127)
- Fixes a bug where thrown non-error objects were not properly handled. (pr#125)
- Fixes a bug that was logging an incorrect message when the notifier was disabled. (pr#124)
- Changes were made to the reported message for jQuery AJAX errors. This will cause some existing errors to have a different fingerprint and show up as new errors.
- Lots of code cleanup and smaller minified file size.
commit 8959eb9 introduced a regression which causes rollbar to be enabled in all environments by default (including development and test).
8959eb9#diff-695693c5dabaffb064bde5b060195ff7R5
Is there any way how to set level to be reported?
Warnings are logged too, and this make noise in Rollbar reports.
It would be great if we could support Rollbar in a Fastboot environment. I'm thinking we could import a shim that wraps Node's process.onUncaughtException
in a window.onerror
interface, so Rollbar could be imported (since it relies on that interface) and could report errors from Fastboot.
Open questions:
window.onerror
?Source maps will help identify which file and line of pre-minified code the error lives on.
Without source maps, errors look like this (line 1
of some minified file)
Haven't looked into the details of implementing yet, but here are the docs from rollbar if someone has time to get started on it: https://rollbar.com/docs/source-maps/
See #10 for details
Rollbar 1.9.1 is out.
Every time I try to enable rollbar in environment.js
:
rollbar: {
enabled: true
}
I have an error in fastboot:
App is being served by FastBoot
/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339
!function(r){function e(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return r[t].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o
={};return e.m=r,e.c=o,e.p="",e(0)}([function(r,e,o){"use strict";var t=o(1).Rollbar,n=o(2);_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://d37gv
rvc0wt4s1.cloudfront.net/js/v1.9/rollbar.min.js";var a=t.init(window,_rollbarConfig),i=n(a,_rollbarConfig);a.loadFull(window,document,!_rollbarConfig.async,_rollba
rConfig,i)},function(r,e){"use strict";function o(r){return function(){try{return r.apply(this,arguments)}catch(e){try{console.error("[Rollbar]: Internal error",e)
}catch(o){}}}}function t(r,e,o){window._rollbarWrappedError&&(o[4]||(o[4]=window._rollbarWrappedError),o[5]||(o[5]=window._rollbarWrappedError._rollbarContext),win
dow._rollbarWrappedError=null),r.uncaughtError.apply(r,o),e&&e.apply(window,o)}function n(r){var e=function(){var
ReferenceError: document is not defined
at Object.<anonymous> (/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339:452)
at e (/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339:107)
...
Is it possible to disable rollbar loading in fastboot environment?
Hi, thanks for the great addon. Is it possible to release the latest version on NPM?
i'm seeing errors from test runners appear in rollbar which doesn't seem right:
https://www.evernote.com/l/AAcJcDhcOrNLgKrSId5qlALZQB-ZGb5CMCY
@danmcclain helpfully suggested on the Ember Slack team that we should try to report errors from the Ember.onerror
hook.
I have an admittedly older version of Ember (v1.13.15
; yes, I know. There's plan to do the upgrade soon). Using the package gives me the following error:
this._super.treeForVendor is not a function
Is there a threshold on how new your Ember app must be to be compatible with this package?
I serve my app with a CSP. I'd previously been using Airbrake, and thought I'd try rollbar. The main stumbling block was setting up the CSP for inline script in ember-cli-rollbar. I didn't just want to add 'unsafe-inline' so here's what to do
ember server -e production
Either the 'unsafe-inline' keyword, a hash ('sha256-Fm2/whhYQWeKGsFHC3/85HdIC/aNhx6cI/mOZSebPSo='), or a nonce ('nonce-...') is required to enable inline execution.
I add it to my config/environment.js file and generate my CSP headers using https://gist.github.com/mrloop/41ee14daecaf1873cee0
Now I need to remember to update the hash if the rollbar snippet is updated or my configuration changes.
I'm wondering if there's a better way of loading rollbar which isn't inline.
Should we have an option to disable logging warn
info
debug
calls to Rollbar? Some old addons cause a lot of deprecation messages and my Rollbar quota runs out very quickly.
Right now, we expose the Rollbar lib as a module so it's theoretically import
able. But we only app.import()
the Rollbar lib if the config.enabled
value is true, and it defaults to false in development. Which means, if you import Rollbar
, it will error out in dev.
This line needs to change to import Rolbar regardless of whether or not it was enabled.
Cannot read property 'env' of undefined
TypeError: Cannot read property 'env' of undefined
at Class.included (/home/circleci/code/node_modules/ember-cli-rollbar/index.js:13:46)
at addons.map.addon (/home/circleci/code/node_modules/ember-cli/lib/models/addon.js:383:34)
at Array.map (<anonymous>)
at Class.eachAddonInvoke (/home/circleci/code/node_modules/ember-cli/lib/models/addon.js:381:24)
at Class.included (/home/circleci/code/node_modules/ember-cli/lib/models/addon.js:652:10)
at Class.superWrapper [as included] (/home/circleci/code/node_modules/core-object/lib/assign-properties.js:34:20)
at EmberAddon.<anonymous> (/home/circleci/code/node_modules/ember-cli/lib/broccoli/ember-app.js:527:17)
at Array.filter (<anonymous>)
at EmberAddon._notifyAddonIncluded (/home/circleci/code/node_modules/ember-cli/lib/broccoli/ember-app.js:524:47)
at EmberAddon.EmberApp (/home/circleci/code/node_modules/ember-cli/lib/broccoli/ember-app.js:144:10)
seems like you should be using app
instead of this.app
https://github.com/davewasmer/ember-cli-rollbar/blob/master/index.js#L13
https://github.com/damiencaselli/ember-cli-sentry/blob/master/index.js#L17
ember-cli/ember-cli#3718
the current version you use uses an old version of minimatch, with is susceptible to a DDoS
https://nodesecurity.io/advisories/118
118 - Regular Expression Denial of Service
Vulnerable: <=3.0.1 - Patched: >=3.0.2 - Path: [email protected] > [email protected] > [email protected] > [email protected] > [email protected]
How to fix
Updated to version 3.0.2 or greater
The current ember-cli-fastboot
releases (1.0.0-rc.1 and above) introduce breaking changes. These will most likely break your current FastBoot implementation.
See ember-fastboot/ember-cli-fastboot#387 for more information and a guide on how to fix your addon. Also you may want to visit the -fastboot
Slack channel to get help from other users.
Note: this issue has been created automatically, by searching for certain patterns in your code. If you think this has been falsely created, feel free to close!
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.