New Post-Purchase Checkout Extension: Changeset 500 Error

Solved
lucasharvey
Tourist
5 0 6

I have followed the tutorial here to create an Upsell App using the new Post-Purchase Checkout Extension. I am able to get the page to load after payment, but the Changeset functions applyChangeset and calculateChangeset are both returning 500 Internal Server Errors from Shopify's APIs (see image). 

Has anyone else encountered these errors? I am wondering if this is a bug since the API is quite new and still in the works. This is currently affecting my app development so I would appreciate any insight about how to fix this.

 

500 Internal Server Error for calculateChangeset500 Internal Server Error for calculateChangeset

 

 

 

 

lyxsus
New Member
1 0 0

I'm experiencing the same problem. Did you find solution?

0 Likes
haripraneshHP
New Member
3 0 0

I'm also facing Internal server issue while applyChangeset call. 

 

0 Likes
denislins
Shopify Staff
Shopify Staff
2 1 1

This is an accepted solution.

Hi Lucas,

We identified the issue, and it should be fixed now.

Thank you for reporting it, and please let us know if you find any other issue.

Cheers!

haripraneshHP
New Member
3 0 0

Hi Denis,

Thanks for your reply on this issue.

I have tried calculateChangeset and applyChangeset functions now.

I'm facing the same error (500 - Internal server error) on calculateChangeset, new error (400 - unprocessed) on applyChangeset.  I have attached a screenshot of the errors below for your reference.

Note - Package version that I'm currently using is

 "@shopify/post-purchase-ui-extensions": "^0.11.0",
"@shopify/post-purchase-ui-extensions-react": "^0.11.0",

 

Error screenshotError screenshot

 

0 Likes
denislins
Shopify Staff
Shopify Staff
2 1 1

Hi! Can you post what you're passing to both methods when calling them, please?

0 Likes
haripraneshHP
New Member
3 0 0

Hi Denis,

I just found out that I'm passing wrong inputs to the functions. Now it's working. 

Thank you for your support.

 

 

0 Likes
lucasharvey
Tourist
5 0 6

Can you please let me know what the fix for this was? I'm currently getting the "400 - Changes must be supplied" error. Thanks!

0 Likes
lucasharvey
Tourist
5 0 6

Edit: RESOLVED. Was calling 

 

await calculateChangeset({newChanges});

 

instead of calling:

 

await calculateChangeset({changes: newChanges});

 

 

****************************************************

Hi, I am still getting a 400 error for calculateChangeset. See below for a screenshot of the changes I'm passing and the error I'm getting.

Screen Shot 2021-07-29 at 10.19.35 AM.png

0 Likes