Open-event-frontend: Creation of New Order Fails

Created on 21 Dec 2018  路  2Comments  路  Source: fossasia/open-event-frontend

Describe the bug

When the user selects the available tickets for an event and proceeds to place an order, the creation fails. The server raises a 422: Unprocessable Entity.

The 422 is caused due to the missing attendees relationship in the POST request data sent to the server. However, intriguingly, the error disappears, if the order relationship defined in the attendee model defined as order: belongsTo: ('order') is removed.

Upon removal of the relationship from the model, Ember automatically starts including attendees in the POST request.

Most helpful comment

While PR #1752 may serve as a temporary fix, we require some help in identifying the root cause of this behavior.
@niranjan94 @pradeepgangwar @ritikamotwani @Anupam-dagar @shreyanshdwivedi

All 2 comments

While PR #1752 may serve as a temporary fix, we require some help in identifying the root cause of this behavior.
@niranjan94 @pradeepgangwar @ritikamotwani @Anupam-dagar @shreyanshdwivedi

Order creations seems stable so far in the test run. Can be reopened later if issues are encountered.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariobehling picture mariobehling  路  4Comments

prateekj117 picture prateekj117  路  5Comments

codedsun picture codedsun  路  4Comments

mariobehling picture mariobehling  路  3Comments

dependabot-preview[bot] picture dependabot-preview[bot]  路  5Comments