Skip to content
Discussion options

You must be logged in to vote

@bkervaski Thanks for bringing this up 👍

I'm not 100% sure, but I think the problem lies in your namespacing. If an error occurs inside your promise, you would expect to echo the message with the help of your rejection handler, but I think it can't match the specific Exception thrown. This all is happening inside a promise and promises are currently swallowing exceptions and errors in the current version if not handled correctly. We're aware of this behavior and are working towards better error handling for this with ReactPHP v3, you can read more about this in our ReactPHP v3 wish list discussion.

I can't see your use statements in this example, so I can't really tell if this is the exac…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SimonFrings
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants