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

Errors in non-sandbox environments #10

Closed
jbuck94 opened this issue Oct 24, 2022 · 7 comments
Closed

Errors in non-sandbox environments #10

jbuck94 opened this issue Oct 24, 2022 · 7 comments

Comments

@jbuck94
Copy link

jbuck94 commented Oct 24, 2022

I am looking to use the plaid development environment, and have set the secrets via the env var int_plaid__secrets__development in vercel. When I click "New Connection" in the browser, I get the following logged to the JS console

[useVeniceConnect] int_plaid Connection failed TRPCClientError: Unable to get client envName=sandbox

And the HTTP request to /api/preConnect has a payload of:

{
  "0": [
    {
      "id": "int_plaid"
    },
    {
      "envName": "sandbox"
    }
  ]
}

and response of:

[{"id":null,"error":{"message":"Unable to get client envName=sandbox","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500,"path":"preConnect"}}}]

It seems the system is not picking up the development env

@jbuck94
Copy link
Author

jbuck94 commented Oct 24, 2022

Wondering if this relates to Implement developer mode tooling Todo on the board here: https://github.com/orgs/usevenice/projects/1/views/1

@tonyxiao
Copy link
Contributor

Try adding &env=development to the end of your url. Neglected to add docs for this, will do now.

@tonyxiao
Copy link
Contributor

Readme updated. Please reopen if issue is not resolved

@jbuck94
Copy link
Author

jbuck94 commented Oct 25, 2022

That did the trick - thanks! Is there a way to set this as an env_var rather than a URL param?

Separately, I've connected an account successfully, but see my transactions table is still empty. Any ideas?

@jbuck94
Copy link
Author

jbuck94 commented Oct 25, 2022

Namely, the plaid logs show the transactions webhook is throwing a 500 error. Im happy to provide log IDs or more details if that will help

@tonyxiao
Copy link
Contributor

For env var, not at the moment. The intention is that you should be able to dynamically choose which env you connect to. However, I'll think about whether it makes sense to use env var to set a "default environment"

Can you try to trigger a manual sync from the UI and see if it's successful? Yea please open an issue for the 500 error and I'd be happy to investigate.

@tonyxiao tonyxiao added bug Something isn't working and removed bug Something isn't working labels Nov 18, 2022
@tonyxiao tonyxiao changed the title Errors in non-sandbox envs Errors in non-sandbox environments Nov 18, 2022
@iwasrobbed
Copy link
Collaborator

@jbuck94 Hey 👋 Just a heads up, we launch a hosted version of Venice yesterday that makes getting your financial data super easy. Try it out here: https://app.venice.is

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