Getting an error to generate the order response

I’m trying to placing the order via upstox python api the order has been executed successfully but when i’m trying to fetch the order response it gives the error

Error occurred in Place_broker_order: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Wed, 14 Aug 2024 08:00:00 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘requestid’: ‘aae36252-4c21-4d85-8f7c-b2698bd563b0’, ‘x-content-type-options’: ‘nosniff’, ‘x-xss-protection’: ‘1; mode=block’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘pragma’: ‘no-cache’, ‘expires’: ‘0’, ‘strict-transport-security’: ‘max-age=0; includeSubDomains’, ‘x-frame-options’: ‘DENY’, ‘CF-Cache-Status’: ‘DYNAMIC’, ‘Set-Cookie’: ‘__cf_bm=GrxQw8LSs_ps46MSREbODdDuzv.fWO7DpXKAu5QMt1Q-1723622400-1.0.1.1-kWcI73ioJl94fqGwxLta0O7CopADJPJK5492Kgis1sM4FUwWYDJaNokmfbxarBUv; path=/; expires=Wed, 14-Aug-24 08:30:00 GMT; domain=.upstox.com; HttpOnly; Secure; SameSite=None, _cfuvid=zJYld19jMmgXWx3ogwFxaPBRQVguNSVom_R6kgYCAUE-1723622400392-0.0.1.1-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘8b2f68a2394785cb-BOM’, ‘alt-svc’: ‘h3=“:443”; ma=86400’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100010”,“message”:“Order not found”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100010”,“property_path”:null,“invalid_value”:null}]}’

it gives me that order not found but i have the complete order in my broker how can i solve this issue?

@Jaivin,

Could you please confirm the amount of time that elapsed before you attempted to fetch the response for this order? It is recommended to introduce a brief delay of a few seconds after placing an order before attempting to retrieve it using the order ID.

Additionally, if you could share the code that is encountering this issue, it would greatly assist in the debugging process.

Thank you.