"Unknown error. Request ID: 1611770320.93139175542964216103. Message: Request failed with status code 404."

I get this error every time I try to update the paymentStatus of an order:

const order = await  wixData.get(
 'Stores/Orders',
  paymentIntent.metadata.orderId,
  { suppressAuth: true }
);
 
console.log('ABOUT TO UPDATE', order);

order.paymentStatus = 'PENDING';

const updatedOrder = await wixData.update(
 'Stores/Orders',
  order,
  { suppressAuth: true }
);

console.log('UPDATE OK', updatedOrder);

I never see the “UPDATE OK” in the logs, instead, I get:

"Unknown error. Request ID: 1611770320.93139175542964216103. Message: Request failed with status code 404."

Edit: This is all on the backend.

Hello Alex, I have the exact same issue, did you find a solution?
Thanks!

Please add your own issue into a new post instead of bumping up an old post. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines .

This is an old post and is being closed.