8000 Swallowing Error Hook · Issue #767 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Swallowing Error Hook #767

@Mattchewone

Description

@Mattchewone

I have a hook which will set context.result from an error hook. This works when called by an internal server call but does not work when called by an external client request.

I have created the following repo that reproduces the issue here - https://github.com/Mattchewone/feathers-buzzard-error-hooks

If you run the mocha tests in VSCode you can see that the service call sets the context.result and the response is correct, but with the client calls the context.result is set but the request still returns the error.

Not sure what context.returnHook does internally but this is false for a server call, but true for a client call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0