500 error on order update request


#1

Hi there,
updating order with id 11506889 with following data:
{:order=>{:line_items_attributes=>[{:sellable_id=>10027438, :quantity=>1}]}}
Same with orders with ids: 11484827, 11443346, 11205090
got 500 error
Can you investigate this?
Thanx


#2

Hey Andriy,

Almost all of the time a 500 error occurs when there is a small error in your request.

Either the request is incorrectly formed or, in the vast majority of cases, it occurs when an ID in the request is incorrect.

In this case please can you double check the sellable_id is correct. Easiest way to do this is by doing a GET request to that order ID.

If you’re certain everything is correct, let me know and I can investigate in more detail from my end.


#3

I’m here updating titles for each order.
And just for those three error occurred, as for hundreds it’s ok.
It seems I’ve checked that id is correct.
But I’ll check again.


#4

Order id: 11251026
update_data: {:order=>{:line_items_attributes=>[{:sellable_id=>11212910, :quantity=>1}, {:sellable_id=>11215211, :quantity=>1}]}}
Order sellables: [11212910, 11215211]
#<Veeqo::InternalServerError: {“status”:“500”,“error”:“Internal Server Error”}>


#5

Can you PM me your API key please so I can try and replicate the error.


#6

Okay, so I was sending update request for ‘cancelled’ order.
But it is no way to do this, that is a reason of 500 error.