this works in the API explorer but not when I run it from my own machine… straight copy & paste
result = client.orders.retrieve_order(
order_id: "8y2LbMmLpof8DAzWzD4fH8teV"
)
if result.success?
puts result.data
elsif result.error?
warn result.errors
end
I get the following errors:
{:category=>“INVALID_REQUEST_ERROR”, :code=>“NOT_FOUND”, :detail=>“Resource not found.”}
Are you running this in the same directory that you have SDK configured to? This error normally happens when the SDK isn’t accessible which is why your getting the not found error.
I just tested with this exact code and an order_id from my account and it worked as expected. The only way I could replicate this was by removing the file from the directory. Have you looked at the file path? Maybe try to hard code it to see if that gets it working?
I’m getting the error message on any request that I try using the orders.api… Again I’m not having any issues with things like team.search_team_members, payments.list_payments, labor.search_shifts
all of these requests are happening in the same method
The SDK supports 2.6 through 3.1 so I’m not sure what’s going on. Especially since other API calls are succeeding. Would you mind reaching out to this link so we can setup some time to debug.