Getting 405 Request method not allowed

vish045
vish045 edited January 30 in Java client
Hi Team,
I was trying to place a BUY order for an option using the below attributes, I am getting 405 error code with message : Request method not allowed
Order params : {
"exchange" : "NFO",
"tradingsymbol" : "NIFTY2420121700CE",
"transactionType" : "BUY",
"quantity" : 50,
"price" : 222.0,
"product" : "MIS",
"orderType" : "MARKET",
"validity" : "DAY",
"disclosedQuantity" : null,
"triggerPrice" : null,
"squareoff" : null,
"stoploss" : null,
"trailingStoploss" : null,
"tag" : "TEST_NFO_TAG",
"parentOrderId" : null,
"validityTTL" : 0,
"icebergQuantity" : 0,
"icebergLegs" : 0,
"auctionNumber" : null
}

Could you please check what is wrong here. I am using kiteconnect version: 3.3.2 in my java application

2024-01-30 09:38:41.811+0530 - INFO 5912 [3-exec-8] okhttp3.OkHttpClient : {"status":"error","message":"Request method not allowed","data":null,"error_type":"GeneralException"}
2024-01-30 09:38:41.811+0530 - INFO 5912 [3-exec-8] okhttp3.OkHttpClient : <-- END HTTP (101-byte body)
2024-01-30 09:38:41.812+0530 -ERROR 5912 [3-exec-8] c.v.f.r.service.KiteService : KiteException occurred while placing order, code: 405, message: Request method not allowed
com.zerodhatech.kiteconnect.kitehttp.exceptions.GeneralException: null
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:52)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:86)
at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:362)
at com.vish.fno.reader.service.KiteService.placeOptionOrder(KiteService.java:110)
This discussion has been closed.