dvankley / firefly-plaid-connector-2

Connector to pull Plaid financial data into the Firefly finance tool
GNU General Public License v3.0
94 stars 14 forks source link

Conatiner exiting with status1: Getting a 400 error, "INVALID_ACCOUNT_ID", when syncing with plaid #70

Closed realciso closed 6 months ago

realciso commented 6 months ago

I was testing with my first account. I used the quickstart app from plaid to get the account ID and access token.

I also verified the ID on the plaid dashboard. The ID showed as valid.

Not sure what else could be the issue. I verified that my clientId was correct in the yml config as well.

Any thoughts on this issue?

app-1  | 2024-02-18T05:35:35.148Z DEBUG 1 --- [           main] n.d.f.sync.BatchSyncRunner               : Fetching Plaid data for access token access-development- and account ids abc123
app-1  | 2024-02-18T05:35:35.644Z ERROR 1 --- [           main] n.d.f.sync.BatchSyncRunner               : Error requesting Plaid transactions. Request: TransactionsGetRequest(accessToken=access-development-, startDate=2024-02-01, endDate=2024-02-18, clientId=null, options=TransactionsGetRequestOptions(accountIds=[abc123], count=100, offset=0, includeOriginalDescription=true, includePersonalFinanceCategoryBeta=false, includePersonalFinanceCategory=true), secret=null); 
app-1  | 2024-02-18T05:35:35.658Z ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application run failed
app-1  | 
app-1  | io.ktor.client.plugins.ClientRequestException: Client request(POST https://development.plaid.com/transactions/get) invalid: 400 Bad Request. Text: "{
app-1  |   "display_message": null,
app-1  |   "documentation_url": "https://plaid.com/docs/?ref=error#invalid-input-errors",
app-1  |   "error_code": "INVALID_ACCOUNT_ID",
app-1  |   "error_message": "one or more of the account IDs in options.account_ids is invalid",
app-1  |   "error_type": "INVALID_INPUT",
app-1  |   "request_id": "Ird2vBPdTCVk6sr",
app-1  |   "suggested_action": null
app-1  | }"
dvankley commented 6 months ago

I used the quickstart app from plaid to get the account ID and access token. I also verified the ID on the plaid dashboard. The ID showed as valid.

This sounds like you might be using the Item id in place of the Account id. Could that be it?

realciso commented 6 months ago

Oh you may be right, what is the account ID? I get the Accesstoken from the quickstart app. I mistook the item id for the account ID. Is the account id, the actual account number?

realciso commented 6 months ago

That was it. Thank you. I misunderstood the readme.