Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'token' of undefined #32

Open
GoShikhar opened this issue Nov 25, 2020 · 2 comments
Open

TypeError: Cannot read property 'token' of undefined #32

GoShikhar opened this issue Nov 25, 2020 · 2 comments

Comments

@GoShikhar
Copy link

GoShikhar commented Nov 25, 2020

Error thrown by SDK:
TypeError: Cannot read property 'token' of undefined\n at Auth.authorize
"IP not whitelisted"

ENV: TEST
I'm using dynamic IP for API calls, so instead of IP whitelisting, I'm using a public key.

Also, as a side note, I haven't added any IP in the whitelisting field on the test dashboard.

@surinder-antech
Copy link

Hi GoShikhar,

We are facing exactly same issue with Cashfree Payout apis. We are using nodejs library. Its working if we whitelist server IP address under 2FA settings.

But our code is running inside ECS, so the public IP of each service get updated upon restart. When we pass ".pem" file content directly into the environment file, then we get error:
TypeError: Cannot read property 'token' of undefined

Could you please assign if you fixed this issue.

Thanks in advance.

@Surya-16
Copy link

Hey,

On Cashfree Dashboard try switching the 2FA method to Public Key and check if that resolves your issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants