We request you to kindly confirm whether you are generating the access token from the web portal web.dhan.co or via the API key-based login and TOTP setup flow.
It looks like the token may have expired or become invalid. Please delete the existing token file from the folder, generate a new token, and then re-run the system.
Also, it would be better to switch to the TOTP + PIN -based login method. With this approach, the token will be generated automatically, eliminating the need for manual regeneration.