Giter Club home page Giter Club logo

opbeat-react's People

Contributors

auchenberg avatar hmdhk avatar jahtalab avatar roncohen avatar vanjacosic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

opbeat-react's Issues

QuotaExceededError has been thrown

using react 15.6, we got this error logged into our dashboard

Type QuotaExceededError
Value The quota has been exceeded.
Location --
Occurred (UTC)

This was found in conjunction attempting to log into our app, got an error, and received a WSOD
I've found this issue opbeat/opbeat-angular#5 and thought that perhaps it was related but caused within this package.

Is this in anyway related?
Care to explain where this is coming from?

Error reporting “breaks” when ran through Cordova

{
    "error_message": "Unable to validate data.", 
    "structured_error": {
        "http": {
            "url": "must be the full URL, including scheme and host: got file:///var/containers/Bundle/Application/495CFDD5-3A8C-4D64-AF85-DFBBDA4B4FF4/my.app/www/index.html/#/settings"
        }
    }, 
    "status": 400
}

File URLs should be supported, IMO.
Worst case: Is it possible to override the URL before sending it to the Opbeat API?

SSR support?

Hi guys, just wondering if this has SSR support?

Thanks!

30 kB gzipped overhead

Using opbeat-react client side introduce a 30 kB gzipped overhead in our bundle.
I fear it's a blocker for us, especially for a performance analytic tool. It's about the size of react-dom, which is already large.
Do you have any plan for reducing the size of the library?

Not working in production

Followed the instructions and things are working for me locally. On the production site, however, they're not. Are there any babelrc or webpack settings that may cause opbeat not to work in production?

Route Unknown

I've set up Opbeat on my react app, and data is being collected, but in the list of Routes there's only one: Unknown.

I use the following libraries:

The setup is something like this:

main.jsx:

import initOpbeat from 'opbeat-react';
import MainContainer from './components/mainContainer';
import React from 'react';
import {render} from 'react-dom';
import {wrapRouter} from 'opbeat-react';
import {BrowserRouter as Router} from 'react-router-dom';
import {Route} from 'react-router-dom';

const OpbeatRouter = wrapRouter(Router);

initOpbeat({
  orgId: 'xyz',
  appId: 'abc'
});

render(
  (
    <div className="wrapper ptl">
      <OpbeatRouter basename="/sende/beta/">
        <Route component={MainContainer}/>
      </OpbeatRouter>
    </div>
  ),
  document.getElementById('app-root')
);

mainContainer.jsx:

import React from 'react';
import {Route} from 'react-router-dom';
import SomeComponent from './someComponent';
import AnotherComponent from './anotherComponent';

class MainContainer extends React.Component {

  render() {
    return (
      <div className="container">
        <Route path="/" exact render={(props) => (
          <SomeComponent {...props}/>
        )}/>
        <Route path="/another" exact render={(props) => (
          <AnotherComponent {...props} />
        )}/>
        <Footer/>
      </div>
    );
  }

}


Caught exception not handled properly

The below code does not properly handle the case when msg is an ErrorEvent.

Console Error:
Uncaught TypeError: exception.message.indexOf is not a function.

Thrown here:

  var exception = {
    'message': error ? error.message : msg,
    'type': error ? error.name : null,
    'fileurl': file || null,
    'lineno': line || null,
    'colno': col || null,
    'extra': extraContext
  }

  if (!exception.type) {
    // Try to extract type from message formatted like 'ReferenceError: Can't find variable: initHighlighting'
    if (exception.message.indexOf(':') > -1) {
      exception.type = exception.message.split(':')[0]
    }
  }

Code Generating the error in react component:

 throwError = () => {
    throw new Error();
  }

Warning when wrapping router

I'm setting up Opbeat with my React app and get a console warning when I patch my router using wrapRouter per the setup instructions:

Warning: [react-router] `Router` no longer defaults the history prop to hash history. Please use the `hashHistory` singleton instead.

React also fails to render anything when using the wrapped router.

I'm using browserHistory; here is my relevant code (initOpbeat is called earlier, from a separate initializers file):

import React, { Component } from 'react';
import { Provider } from 'react-redux';
import DashboardRoutes from './DashboardRoutes';
import store from './RootStore';
import { wrapRouter } from 'opbeat-react';
import { Router, browserHistory } from 'react-router';
const OpbeatRouter = wrapRouter(Router);

export default class Root extends Component {
  render() {
    return (
      <Provider store={store}>
        <OpbeatRouter history={browserHistory}>{DashboardRoutes}</OpbeatRouter>
      </Provider>
    );
  }
}

Any guidance on this would be appreciated. I'm using react-router 2.8.1.

3.2.0 swallows errors.. exceptions aren't visible in console

To reproduce, a add throw new Error('test') in a jsx file and it won't appear in the console

Culprit code appears to be here:

ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
  try {
    return fn();
  } finally {
    ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
  }

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.