Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitting order crashes sometimes #342

Open
andrzejkrzywda opened this issue Jul 20, 2023 · 4 comments
Open

Submitting order crashes sometimes #342

andrzejkrzywda opened this issue Jul 20, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@andrzejkrzywda
Copy link
Contributor

According to our tracker (honeybadger) we get NoMethodError: undefined method uid' for nil:NilClass` sometimes.

It seems to come from orders/show action. On further investigation it comes after we redirect to show from the create action.

The create action creates 2 commands, which then result in events, which then are handled by read models.

It's very likely that after the recent switch to async event handlers, now this not often executes on time.

We'd need to fix this somehow.

@andrzejkrzywda andrzejkrzywda added the bug Something isn't working label Jul 20, 2023
@lukaszreszke
Copy link
Collaborator

Doesn't occur anymore

@andrzejkrzywda
Copy link
Contributor Author

The acceptance criteria for closing this issue will be to honeybadger not reporting this for some days on production.

@lukaszreszke lukaszreszke self-assigned this Jul 29, 2024
lukaszreszke added a commit that referenced this issue Jul 29, 2024
Current implementation is very happy-path oriented. When order exists,
everything is fine. However, when there is no order, then the
NoMethodError (as in honeybadger) is thrown.

The behaviour is changed now. The 404 page is returned when
there is no order for given id.

https://app.honeybadger.io/projects/58419/faults/91462781/01J3Y753P7F6F70CYT2ZQE1VND
#342
@lukaszreszke
Copy link
Collaborator

I investigated the error message and it seems like it is not possible to reproduce. The reason is the fact that those errors are caused by web-crawlers.

image

image

Those web-crawlers try to access non-existing orders. Therefore, the NoMethod error is thrown.

I changed the behaviour and the 404 page will be returned instead [4878e71]

@lukaszreszke
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants