Invalid Checksum

traders400 edited August 2023 in API clients
I am getting invalid token exception I signed up for api subscription today.

data: {
status: 'error',
message: 'Invalid `checksum`.',
data: null,
error_type: 'TokenException'

request header:

_header: 'POST /session/token HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'X-Kite-Version: 3\r\n' +
'User-Agent: axios/1.4.0\r\n' +
'Content-Length: 145\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host:\r\n' +
'Connection: close\r\n' +
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/session/token',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: '',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kUniqueHeaders)]: null

I am writing my own lib using kiteconnect rest apis i got request_token as mentioned in v3 docs when trying to get access_token I am getting this error.
Please suggest.
  • sujith
    If you are receiving checksum error then one of the three inputs is wrong or your SHA-256 hash of the three is invalid. You can check out the documentation.

    PS: Why are you writing custom client library? You can use the existing one the is open source, right?
Sign In or Register to comment.