Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception in FileObserver io.sentry.android.core.EnvelopeFileObserver #775

Closed
3 of 7 tasks
listenzz opened this issue Feb 21, 2020 · 1 comment · Fixed by #773
Closed
3 of 7 tasks

Unhandled exception in FileObserver io.sentry.android.core.EnvelopeFileObserver #775

listenzz opened this issue Feb 21, 2020 · 1 comment · Fixed by #773

Comments

@listenzz
Copy link

listenzz commented Feb 21, 2020

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native
  • react-native-sentry

SDK version: 1.3.1
react-native version: 0.61.5

Init Code:

Sentry.init({
  dsn: 'https://...@sentry.io/...'
});

I have following issue:

2020-02-21 11:44:40.257 14889-14949/com.shundaojia.myapp E/FileObserver: Unhandled exception in FileObserver io.sentry.android.core.EnvelopeFileObserver@7b5ba1d
    java.lang.IllegalArgumentException: Invalid envelope. Item at index '1'. has no header delimiter.
        at io.sentry.core.EnvelopeReader.read(EnvelopeReader.java:30)
        at io.sentry.core.EnvelopeSender.processFile(EnvelopeSender.java:3)
        at io.sentry.core.EnvelopeSender.processEnvelopeFile(EnvelopeSender.java:1)
        at io.sentry.android.core.EnvelopeFileObserver.onEvent(EnvelopeFileObserver.java:4)
        at android.os.FileObserver$ObserverThread.onEvent(FileObserver.java:163)
        at android.os.FileObserver$ObserverThread.observe(Native Method)
        at android.os.FileObserver$ObserverThread.run(FileObserver.java:113)

Steps to reproduce:

Call method:

 reject = () => {
    Promise.reject(new Error('Something Wrong!'))
  }

  throw = () => {
    throw new Error('Throw something')
  }
@listenzz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant