You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, thanks for creating the node-client! I was implementing Authzed at work and was trying to get the experimental service's bulkImportRelationships to throw errors when it fails. Specifically, I was trying to throw an error while using a Writestream created using the client library v0.13.0.
^ In the callbacks I actually implemented callbacks in a bunch of places to try and get the error to appear.
However, it seems like these errors do not propagate (or thrown) up to the context where they have been called, even though the code execution managed to log the error. Screenshot attached below:
The text was updated successfully, but these errors were encountered:
I'm not sure if that's how callbacks typically handle errors. My sense is that when you're throwing the error, you're not throwing it in the parent context, but rather the execution context internal to the call. I think it's functionally similar to calling setTimeout(() => throw new Error('oops!')) in that it isn't in the control flow of the code that dispatched it.
Hi there, thanks for creating the node-client! I was implementing Authzed at work and was trying to get the experimental service's
bulkImportRelationships
to throw errors when it fails. Specifically, I was trying to throw an error while using aWritestream
created using the client libraryv0.13.0
.^ In the callbacks I actually implemented callbacks in a bunch of places to try and get the error to appear.
However, it seems like these errors do not propagate (or thrown) up to the context where they have been called, even though the code execution managed to log the error. Screenshot attached below:
The text was updated successfully, but these errors were encountered: