We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Error: cannot get fulfillment value/rejection reason of a non-(fulfilled/rejected) promise
You can get this error when you're trying to call .value or .error when inspecting a promise where the promise has not been fulfilled or rejected yet.
.value
.error
For example:
var p = Promise.delay(1000); p.inspect().value();
Consider using .isPending() .isFulfilled and .isRejected in order to inspect the promise for status.
.isPending()
.isFulfilled
.isRejected
Please consider reading more about synchronous inspection in the API page