[Bug]: API: Could not get remote files #1022

Closed
opened 2026-02-28 19:28:52 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ogdabou on GitHub (Apr 3, 2024).

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I have checked my server logs and could not see any errors there
  • I will be attaching my server logs to this issue
  • I will be attaching my client-side (browser) logs to this issue
  • I understand that this issue will be automatically closed if insufficient information is provided

What happened?

Hello !

I've searched through existing issues and tried to play with my versions, but in vain. That's probably a silly mistake on me but since I'm not able to find what's wrong... Maybe you'll have some ideas to put me on track.

I'm using the API trying to parse a CSV locally then use the API to import transactions.

Environment

Server:

  • Actual v24.3.0 on a Pikapod
  • Custom DNS, HTTPS provided by Pikapod

I don't know how to give server logs

Client:

  • Node: v20.3.1
  • actual-app/api": "^6.7.0"
  • NestJS: 10.0.0 if that matters
  "dependencies": {
    "@actual-app/api": "^6.7.0",
    "@nestjs/common": "^10.0.0",
    "@nestjs/config": "^3.2.1",
    "@nestjs/core": "^10.0.0",
    "@nestjs/platform-express": "^10.0.0",
    "@types/crypto-js": "^4.2.2",
    "@types/luxon": "^3.4.2",
    "@types/objects-to-csv": "^1.3.3",
    "@types/uuid": "^9.0.8",
    "crypto-js": "^4.2.0",
    "csv": "^6.3.8",
    "csv-parser": "^3.0.0",
    "csv-writer": "^1.6.0",
    "export-to-csv": "^1.2.4",
    "js-yaml": "^4.1.0",
    "luxon": "^3.4.4",
    "moment": "^2.30.1",
    "nanoid": "^3.3.7",
    "neat-csv": "^7.0.0",
    "objects-to-csv": "^1.3.6",
    "randomstring": "^1.3.0",
    "reflect-metadata": "^0.2.0",
    "rxjs": "^7.8.1",
    "uuid": "^9.0.1"
  }

Client code

  • The passwod I'm using is the one I use to connect to the UI
  • the budget ID I use is the one I could find in settings > advanced > sync id I also tried the BudgetId with same results
import * as api from '@actual-app/api';



    await api.init({
      "serverUrl": "https://my.own.domain.com",
      "password": "redacted",
      "dataDir": "/tmp/actual"
    });
    try {
      await api.downloadBudget('redacted');
      await api.shutdown()
    } catch (error) {
      this.logger.error(error)
    }

What error did you receive?

/home/acouty/git/Personnel/bnp-transactions-parser/node_modules/.pnpm/@actual-app+api@6.7.0/node_modules/@actual-app/api/dist/app/bundle.api.js:35047
                        throw new Error('Could not get remote files');
                              ^
Error: Could not get remote files
    at handlers.api/download-budget (/home/acouty/git/Personnel/bnp-transactions-parser/node_modules/.pnpm/@actual-app+api@6.7.0/node_modules/@actual-app/api/dist/app/bundle.api.js:35047:31)

When running in Debugger it seems that the Token returned in listRemoteFiles is undefined, so I tried [NODE_TLS_REJECT_UNAUTHORIZED](https://nodejs.org/api/cli.html#node_tls_reject_unauthorizedvalue) to 0. to try out but din't get more success.

Where are you hosting Actual?

Pikapods

What browsers are you seeing the problem on?

No response

Operating System

Linux

Originally created by @ogdabou on GitHub (Apr 3, 2024). ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### Is this related to GoCardless, Simplefin or another bank-sync provider? - [ ] I have checked my server logs and could not see any errors there - [ ] I will be attaching my server logs to this issue - [ ] I will be attaching my client-side (browser) logs to this issue - [X] I understand that this issue will be automatically closed if insufficient information is provided ### What happened? Hello ! I've searched through existing issues and tried to play with my versions, but in vain. That's probably a silly mistake on me but since I'm not able to find what's wrong... Maybe you'll have some ideas to put me on track. I'm using the API trying to parse a CSV locally then use the API to import transactions. **Environment** Server: - Actual v24.3.0 on a Pikapod - Custom DNS, HTTPS provided by Pikapod I don't know how to give server logs Client: - Node: v20.3.1 - actual-app/api": "^6.7.0" - NestJS: 10.0.0 _if that matters_ ``` "dependencies": { "@actual-app/api": "^6.7.0", "@nestjs/common": "^10.0.0", "@nestjs/config": "^3.2.1", "@nestjs/core": "^10.0.0", "@nestjs/platform-express": "^10.0.0", "@types/crypto-js": "^4.2.2", "@types/luxon": "^3.4.2", "@types/objects-to-csv": "^1.3.3", "@types/uuid": "^9.0.8", "crypto-js": "^4.2.0", "csv": "^6.3.8", "csv-parser": "^3.0.0", "csv-writer": "^1.6.0", "export-to-csv": "^1.2.4", "js-yaml": "^4.1.0", "luxon": "^3.4.4", "moment": "^2.30.1", "nanoid": "^3.3.7", "neat-csv": "^7.0.0", "objects-to-csv": "^1.3.6", "randomstring": "^1.3.0", "reflect-metadata": "^0.2.0", "rxjs": "^7.8.1", "uuid": "^9.0.1" } ``` **Client code** - The passwod I'm using is the one I use to connect to the UI - the budget ID I use is the one I could find in `settings > advanced > sync id` I also tried the `BudgetId` with same results ``` import * as api from '@actual-app/api'; await api.init({ "serverUrl": "https://my.own.domain.com", "password": "redacted", "dataDir": "/tmp/actual" }); try { await api.downloadBudget('redacted'); await api.shutdown() } catch (error) { this.logger.error(error) } ``` ### What error did you receive? ``` /home/acouty/git/Personnel/bnp-transactions-parser/node_modules/.pnpm/@actual-app+api@6.7.0/node_modules/@actual-app/api/dist/app/bundle.api.js:35047 throw new Error('Could not get remote files'); ^ Error: Could not get remote files at handlers.api/download-budget (/home/acouty/git/Personnel/bnp-transactions-parser/node_modules/.pnpm/@actual-app+api@6.7.0/node_modules/@actual-app/api/dist/app/bundle.api.js:35047:31) ``` When running in Debugger it seems that the Token returned in `listRemoteFiles` is `undefined`, so I tried `[NODE_TLS_REJECT_UNAUTHORIZED](https://nodejs.org/api/cli.html#node_tls_reject_unauthorizedvalue) to 0.` to try out but din't get more success. ### Where are you hosting Actual? Pikapods ### What browsers are you seeing the problem on? _No response_ ### Operating System Linux
GiteaMirror added the bug label 2026-02-28 19:28:52 -06:00
Author
Owner

@MatissJanis commented on GitHub (Apr 3, 2024):

Screenshot 2024-04-03 at 15 36 24
@MatissJanis commented on GitHub (Apr 3, 2024): <img width="1440" alt="Screenshot 2024-04-03 at 15 36 24" src="https://github.com/actualbudget/actual/assets/886567/f696d00c-75c6-4ca2-afbf-d2af426d0da4">
Author
Owner

@ogdabou commented on GitHub (Apr 3, 2024):

Damnit sorry 🙇

@ogdabou commented on GitHub (Apr 3, 2024): Damnit sorry :bow:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1022