I'm not able to place the order's using the Upstox Api

When i;m placing the market order using the upstox api then it gives me error that
error while executing order - (500)
Reason: Server Error
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Wed, 10 Jul 2024 03:55:21 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’: ‘8221e142-4f56-4fde-822e-7982dbb9f2b0’, ‘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=MqVJuWO897j1V66gGCeQkHY6kpdvPTnhxauFoctdJJg-1720583721-1.0.1.1-ijIWgh7iks3kFq5x2yKZwi3_T7au2x1ecyQEJ2_LGhVicjUsaN9iO01pOp_jtlRO; path=/; expires=Wed, 10-Jul-24 04:25:21 GMT; domain=.; HttpOnly; Secure; SameSite=None, _cfuvid=VJb3aAnKraqrNNKDcY.ebl8o_9zDnfPVkMRsU2I3K6g-1720583721608-0.0.1.1-604800000; path=/; domain=.; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘8a0d9dc23d8346f6-BOM’, ‘alt-svc’: ‘h3=“:443”; ma=86400’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100500”,“message”:“Something went wrong… please contact us”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null}]}’

sometimes it gives error that
Error Occured in Upstox Order Placement (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Wed, 10 Jul 2024 03:50:21 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘X-Content-Type-Options’: ‘nosniff’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘Pragma’: ‘no-cache’, ‘Strict-Transport-Security’: ‘max-age=0; includeSubDomains’, ‘X-Frame-Options’: ‘DENY’, ‘Cache-Control’: ‘must-revalidate,no-cache,no-store’, ‘Vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘CF-Cache-Status’: ‘DYNAMIC’, ‘Set-Cookie’: ‘__cf_bm=SVFSH71.8wnu2HnD19S3DWeJTZu_yHaNoHBfidibXv4-1720583421-1.0.1.1-P9h.iLOapaua7nwbObMtWgHlZ02VdChPCunPLsodz8wKZq1sCBh2R4C1otW.qxyl; path=/; expires=Wed, 10-Jul-24 04:20:21 GMT; domain=.; HttpOnly; Secure; SameSite=None, _cfuvid=VIxCQKkbMblKNU0oUrMJ2E.wBp7s_yk32Ic5Yit.BRs-1720583421452-0.0.1.1-604800000; path=/; domain=.; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘8a0d96a7f8324936-BOM’, ‘alt-svc’: ‘h3=“:443”; ma=86400’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100050”,“message”:“Invalid token used to access API”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100050”,“property_path”:null,“invalid_value”:null}]}’

@Jaivin,

We are currently investigating this issue. I will update you shortly with the details.

Thank you!

@Jaivin,

I noticed these executions occurred around 9:30 AM, during which we encountered a brief, resolved issue.

This issue was short-lived and has been promptly resolved. You should not encounter it again.

Apologies for any inconvenience caused.

Thank you!

1 Like