Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug: Internal Server Error Instead of Proper Error When Nested CRUD Handler Throws Error #179

Copy link
Copy link
@kfahad5607

Description

@kfahad5607
Issue body actions

Description:

When a CRUD handler A is called inside another CRUD handler B, known errors thrown from A are not properly propagated.

Reproduction:

Trying to change the selected team with a non-existent team ID via Update Current User API.

Error Example

The correct error was thrown but not propagated correctly.

APIs with this issue:

  1. Get Current User
  2. Delete Current User
  3. Update Current User

Probable Solution:

Add expected errors in allowedErrorTypes while calling CRUD handlers.

Solution Example

Now, allowed errors should propagate properly.

Propagated Error Example

Now we get an appropriate error instead of an internal server error.

Correct Error Example

Additional Notes:

I would love to work on this issue. Please assign it to me if possible.

Reactions are currently unavailable

Metadata

Metadata

Assignees

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.