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

linkTokenConfiguration.token: is invalid, it must contain an environment name. #342

Closed
dfvalenciaviamericas opened this issue May 7, 2024 · 6 comments

Comments

@dfvalenciaviamericas
Copy link

Hi Plaid

i am trying to run tiny TinyQuickstartReactNative using this variables in the .env file
PLAID_CLIENT_ID=our_plaid_client_id*****
PLAID_SECRET=our_plaid_secret**
PLAID_ENV=DEV
PLAID_SANDBOX_REDIRECT_URI=https://cdn-testing.plaid.com/link/v2/stable/sandbox-oauth-a2a-react-native-redirect.html
PLAID_ANDROID_PACKAGE_NAME=com.tinyquickstartreactnative

however when i click in the "open link button" i am receiving this message error :
{"error": {"displayMessage": "linkTokenConfiguration.token: is invalid, it must contain an environment name.", "errorCode": "6", "errorDisplayMessage": "linkTokenConfiguration.token: is invalid, it must contain an environment name.", "errorJson": null, "errorMessage": "linkTokenConfiguration.token: is invalid, it must contain an environment name.", "errorType": "creation error", "metadata": {"institution": null, "linkSessionId": null, "metadataJson": null, "requestId": null, "status": null}}}

image
@phoenixy1
Copy link
Contributor

It sounds like the app's backend call to /link/token/create might have failed -- can you verify that you successfully created a link token? You should be able to check your logs at https://dashboard.plaid.com/developers/logs. If the call failed, an error code for the failure should be in the logs.

@dfvalenciaviamericas
Copy link
Author

I am getting this error when trying to call create_link_token

image

error catch create_link_token
LOG [SyntaxError: JSON Parse error: Unexpected character: <]

@ToddKerpelman
Copy link

ToddKerpelman commented May 8, 2024

IIRC, the Plaid Environment should be sandbox production or development (and development is going away next month). Try using sandbox for now and see if that helps.

@dfvalenciaviamericas
Copy link
Author

dfvalenciaviamericas commented May 8, 2024

i am using sandbox but issue persists
image

any other advise @ToddKerpelman

@RevanthGundala
Copy link

Running into the same issue

@phoenixy1
Copy link
Contributor

Also, make sure the .env.example file is renamed to .env.

I'm going to close this out since it's a bit old -- if anyone else is seeing the same issue, please re-open a new 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

4 participants