"Invalid Input" error on VendorOrders get_purchase_orders() depending on changedAfter value #434
Replies: 3 comments 3 replies
-
Hi, I haven't worked with the vendor api a lot, but there's nothing here that looks like this client even could cause the behavior. Does (datetime.utcnow() - timedelta(days=7)).isoformat() work? |
Beta Was this translation helpful? Give feedback.
-
Michael, so guess what - that same exact request that was failing before now succeeds:
So it does seem like there was some transient issue on Amazon's side. But now I am well equipped to report issues to Amazon support thanks to the exposed |
Beta Was this translation helpful? Give feedback.
-
I'm facing same problem for get_purchase_orders_status ()
Receiving recent date data |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Calls to
VendorOrders().get_purchase_orders()
succeed or fail depending on the value ofchangedAfter
.To Reproduce
This call succeeds:
This call fails:
The error response is:
Notice that the only difference is the
changedAfter
value - both are in ISO-8601 date/time format and both are well within the 7 day range stated in the documentation. These calls also fail:Expected behavior
It's expected that these calls should succeed as long as the
changedAfter
date is ISO-8601 date/time format and within the 7 day range.Additional context
I suspect these issues are with the Amazon REST API and not this SDK, but it's hard to know for sure. Also, the API error response message is useless. I also suspect this is the fault of the Amazon API and not this SDK but again, it's hard to know for sure.
Beta Was this translation helpful? Give feedback.
All reactions