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

Unable to cancel fulfillment #2306

Closed
akashchandwani opened this issue Jul 21, 2023 · 2 comments
Closed

Unable to cancel fulfillment #2306

akashchandwani opened this issue Jul 21, 2023 · 2 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@akashchandwani
Copy link

Describe the bug
Noticed that we are not able to cancel a fulfillment in Vendure 2.0.3

To Reproduce
Steps to reproduce the behavior:

  1. Place an order using customer API (Or pick any customer order).
  2. Go to Vendure Admin UI.
  3. Go to the this recent order which should now be in "PaymentSettled" state
  4. Click on 'Fulfill Order' on the top right
  5. Scroll down to the fulfillment, click on three dots, press cancel fulfillment
  6. See error

Expected behavior
This should cancel the fulfillment.

Environment (please complete the following information):

  • @vendure/core version: 2.0.3
  • Nodejs version: v18.16.1
  • Database (mysql/postgres etc): postgers

Additional context

@akashchandwani akashchandwani added the type: bug 🐛 Something isn't working label Jul 21, 2023
@michaelbromley michaelbromley moved this to 📋 Backlog in Vendure OS Roadmap Jul 21, 2023
@michaelbromley michaelbromley moved this from 📋 Backlog to 🏗 In progress in Vendure OS Roadmap Jul 27, 2023
@michaelbromley
Copy link
Member

Hi @akashchandwani

I am unable to reproduce this locally, so I'd need a bit more information from your side:

  • When you see the error, can you check if there is any error in the Vendure server console? If so, please share the stack trace.
  • Do you have a custom FulfillmentProcess defined? If so, can you verify that the error does not originate in your custom code?

@akashchandwani
Copy link
Author

Hi @michaelbromley,

Please find my response below:

When you see the error, can you check if there is any error in the Vendure server console? If so, please share the stack trace.

I don't see any specific error message on the Vendure server console, just a warning as below

[server] warn 7/27/23, 4:28 PM - [Vendure Server] ENTITY_NOT_FOUND: error.entity-with-id-not-found

Do you have a custom FulfillmentProcess defined? If so, can you verify that the error does not originate in your custom code?

I don't have any custom FulfillmentProcess defined.

A info that can be useful is that I had migrated the data from Vendure 1.9.5 to Vendure 2.0.3 using the steps from https://docs.vendure.io/migrating-from-v1/

The response json that I get in the console for TransitionFulfillmentToState is as follows

{"errors":[{"message":"No OrderLine with the id \"82\" could be found","locations":[{"line":2,"column":3}],"path":["transitionFulfillmentToState"],"extensions":{"code":"ENTITY_NOT_FOUND"}}],"data":null}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

2 participants