Open vivegi opened 1 year ago
I am getting same error using python api.
Below both executions are done using same session key
C:\Users\Sudhakar>python ICICILOG.py Traceback (most recent call last): File "C:\Users\Sudhakar\AppData\Local\Programs\Python\Python311\Lib\site-packages\breeze_connect\breeze_connect.py", line 743, in api_util raise Exception(except_message.AUTHENICATION_EXCEPTION.value) Exception: Could not authenticate credentials. Please check token and keys
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Sudhakar\ICICILOG.py", line 16, in
C:\Users\Sudhakar>python ICICILOG.py Traceback (most recent call last): File "C:\Users\Sudhakar\AppData\Local\Programs\Python\Python311\Lib\site-packages\breeze_connect\breeze_connect.py", line 743, in api_util raise Exception(except_message.AUTHENICATION_EXCEPTION.value) Exception: Could not authenticate credentials. Please check token and keys
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Sudhakar\ICICILOG.py", line 16, in
Dear Sir,
Please mail the code without credential at breezeapi@icicisecurities.com.
Just let us know when your servers are ready. Same code runs and then fails to run. So no code needed in this case.
Any updates on this? getting same error.
import { BreezeConnect } from "breezeconnect"
export async function connect() {
const appKey = "--"
const appSecret = "--"
const breeze = new BreezeConnect({ appKey })
await breeze.generateSession(appSecret, "session-key")
}
Error
Uncaught (in promise) Could not authenticate credentials. Please check token and keys
Same code works in python
breeze = BreezeConnect(api_key=BREEZE_CONNECT["API_KEY"])
# Generate Session
breeze.generate_session(api_secret=BREEZE_CONNECT["API_SECRET"],
session_token=session_key)
Hi, iam getting the same error. can you tell me what was the solution you get
const breeze = new BreezeConnect({ "appKey": "api_key" }) breeze.generateSession({ "secretKey": "secret_key", "sessionToken": "session_key" }) .then((res) => { console.log('success') }) .catch((err) => { console.log(err) })
this is my node.js code
and iam getting Could not authenticate credentials. Please check token and keys
I am running the demo.js given in the example.
I have generated app_key, secret_key and session_token as per the documented procedure.
When I run the demo.js code (I have renamed the file as algotrade.js in my machine), I get the following error.
After I set
I don't get the warning, but I still get the error:
I have tried the following two variations:
In both instances, I get the error.
Unsure what the issue is and how to proceed.
Environment: I am running
node v18.6.0
onMS Windows Version 22H2 (OS Build 22621.1413
.