question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible Unhandled Promise Rejection (id:0)

See original GitHub issue

Hey Team,

I get this yellow box:

Possible Unhandled Promise Rejection (id: 0):
Already read
TypeError: Already read
    at consumed (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:12146:23)
    at Response.Body.text (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:12237:14)
    at _class._onRegisterPressed$ (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:73490:940)
    at tryCatch (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10389:30)
    at GeneratorFunctionPrototype.invoke [as _invoke] (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10665:12)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10422:13)
    at tryCatch (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10389:30)
    at invoke (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10465:12)
    at http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:10473:1
    at tryCallOne (http://10.10.1.227:8081/index.ios.bundle?platform=ios&dev=true:6407:8)

How can I fix this? I’m doing a server request inside a try catch block. Everything is working fine. I’m not getting any errors from my server, only this yellow box appears.

Thank you a lot for this great framework!

albo1337

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Eyesonly88commented, Mar 18, 2017

Note for future readers: this error also happens if you have throw Error(msg) in your code!

4reactions
jhack32commented, Aug 24, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native: Possible unhandled promise rejection
I'm getting the following error: Possible unhandled promise rejection (id:0: Network request failed). Here's the promise code, ...
Read more >
Possible Unhandled Promise Rejection (id: 0): | Mendix Forum
I have upgraded a native mobile app with NFC dependency from 8.6.9 (all working well) to 8.18.4. I built a new dev .apk...
Read more >
React Native Auth0 Possible Unhandled Promise Rejection
Possible Unhandled Promise Rejection (id: 1): TypeError: undefined is not an object (evaluating '_yield$getCredentials.accessToken').
Read more >
React Native Auth0 Possible Unhandled Promise Rejection
WARN Possible Unhandled Promise Rejection (id: 0): TypeError: null is not an object (evaluating 'this.Auth0Module.ha…
Read more >
Unhandled promise rejection (id:0) Error: database or disk is ...
[Solved]-Unhandled promise rejection (id:0) Error: database or disk is full....-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found