[GH-ISSUE #5152] [Bug]: (GoCardless) Attempting to link account: Request failed with status code 404 #9137

Closed
opened 2026-04-10 19:25:09 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @lazynooblet on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/actualbudget/actual/issues/5152

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

When beginning the sync request to GoCardless, the following message is shown:

Image

How can we reproduce the issue?

When attempting to create a new linked account with GoCardless using UK bank Monzo.

I'll try and sanitize logs and attach after submission.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox

Operating System

Windows 11

Originally created by @lazynooblet on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/actualbudget/actual/issues/5152 ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? When beginning the sync request to GoCardless, the following message is shown: ![Image](https://github.com/user-attachments/assets/e4561a44-6ccc-49c4-8c7e-d3c5f9ef233f) ### How can we reproduce the issue? When attempting to create a new linked account with GoCardless using UK bank Monzo. I'll try and sanitize logs and attach after submission. ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Firefox ### Operating System Windows 11
GiteaMirror added the bank syncbug labels 2026-04-10 19:25:09 -05:00
Author
Owner

@lazynooblet commented on GitHub (Jun 13, 2025):

Sanitised (hopefully) logs
actual_github-issue_5152.txt

Some notable parts.

Error /gocardless/create-web-token InvalidInputDataError: Invalid provided parameters
    at handleGoCardlessError (file:///app/src/app-gocardless/services/gocardless-service.js:24:19)
    at Object.createRequisition (file:///app/src/app-gocardless/services/gocardless-service.js:255:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///app/src/app-gocardless/app-gocardless.js:29:37 {
  details: h [AxiosError]: Request failed with status code 400
      at te (file:///app/node_modules/nordigen-node/dist/index.esm.js:13:914)
      at IncomingMessage.<anonymous> (file:///app/node_modules/nordigen-node/dist/index.esm.js:17:16315)
      at IncomingMessage.emit (node:events:536:35)
      at endReadableNT (node:internal/streams/readable:1698:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'ERR_BAD_REQUEST',
      method: 'post',
      url: URL {
        href: 'https://bankaccountdata.gocardless.com/api/v2/agreements/enduser/',
        origin: 'https://bankaccountdata.gocardless.com',
        protocol: 'https:',
        username: '',
        password: '',
        host: 'bankaccountdata.gocardless.com',
        hostname: 'bankaccountdata.gocardless.com',
        port: '',
        pathname: '/api/v2/agreements/enduser/',
        search: '',
        searchParams: URLSearchParams {},
        hash: ''
      },
      data: '{"institution_id":"MONZO_MONZGB2L","max_historical_days":"730","access_valid_for_days":"180","access_scope":["balances","details","transactions"]}'
      data: {
        access_valid_for_days: {
          summary: 'Incorrect access_valid_for_days',
          detail: 'access_valid_for_days must be > 0 and <= 90'
        },
        status_code: 400
      }
    method: 'get',
    url: URL {
      href: 'https://bankaccountdata.gocardless.com/api/v2/requisitions/undefined/',
      origin: 'https://bankaccountdata.gocardless.com',
data: { summary: 'Not found.', detail: 'Not found.', status_code: 404 }
<!-- gh-comment-id:2969657859 --> @lazynooblet commented on GitHub (Jun 13, 2025): Sanitised (hopefully) logs [actual_github-issue_5152.txt](https://github.com/user-attachments/files/20723491/actual_github-issue_5152.txt) Some notable parts. ``` Error /gocardless/create-web-token InvalidInputDataError: Invalid provided parameters at handleGoCardlessError (file:///app/src/app-gocardless/services/gocardless-service.js:24:19) at Object.createRequisition (file:///app/src/app-gocardless/services/gocardless-service.js:255:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///app/src/app-gocardless/app-gocardless.js:29:37 { details: h [AxiosError]: Request failed with status code 400 at te (file:///app/node_modules/nordigen-node/dist/index.esm.js:13:914) at IncomingMessage.<anonymous> (file:///app/node_modules/nordigen-node/dist/index.esm.js:17:16315) at IncomingMessage.emit (node:events:536:35) at endReadableNT (node:internal/streams/readable:1698:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ERR_BAD_REQUEST', ``` ``` method: 'post', url: URL { href: 'https://bankaccountdata.gocardless.com/api/v2/agreements/enduser/', origin: 'https://bankaccountdata.gocardless.com', protocol: 'https:', username: '', password: '', host: 'bankaccountdata.gocardless.com', hostname: 'bankaccountdata.gocardless.com', port: '', pathname: '/api/v2/agreements/enduser/', search: '', searchParams: URLSearchParams {}, hash: '' }, data: '{"institution_id":"MONZO_MONZGB2L","max_historical_days":"730","access_valid_for_days":"180","access_scope":["balances","details","transactions"]}' ``` ``` data: { access_valid_for_days: { summary: 'Incorrect access_valid_for_days', detail: 'access_valid_for_days must be > 0 and <= 90' }, status_code: 400 } ``` ``` method: 'get', url: URL { href: 'https://bankaccountdata.gocardless.com/api/v2/requisitions/undefined/', origin: 'https://bankaccountdata.gocardless.com', ``` ``` data: { summary: 'Not found.', detail: 'Not found.', status_code: 404 } ```
Author
Owner

@chrisanicolaou commented on GitHub (Jun 13, 2025):

Was able to reproduce - seems to affect most UK-specific banks (also tried Lloyds, Barclays Personal, Halifax Personal).

Doesn't seem to affect non-UK specific banks (Paypal & Goldman Sachs works as usual) - also doesn't affect non-UK banks (tried banks in Greece, which are working correctly).

Just to confirm with the above screenshots - we're not populating requisitionId in pollGoCardlessWebToken on the faulty banks. This is populated for the working banks.

<!-- gh-comment-id:2969918312 --> @chrisanicolaou commented on GitHub (Jun 13, 2025): Was able to reproduce - seems to affect most UK-specific banks (also tried Lloyds, Barclays Personal, Halifax Personal). Doesn't seem to affect non-UK specific banks (Paypal & Goldman Sachs works as usual) - also doesn't affect non-UK banks (tried banks in Greece, which are working correctly). Just to confirm with the above screenshots - we're not populating `requisitionId` in `pollGoCardlessWebToken` on the faulty banks. This is populated for the working banks.
Author
Owner

@matt-fidd commented on GitHub (Jun 13, 2025):

I hit this yesterday as well, a fix is up here https://github.com/actualbudget/actual/pull/5150.

I'm also in contact with GoCardless and trying to have them sort it out. The root cause is that they're sending faulty data that then causes the requisition request to fail.

<!-- gh-comment-id:2970131694 --> @matt-fidd commented on GitHub (Jun 13, 2025): I hit this yesterday as well, a fix is up here https://github.com/actualbudget/actual/pull/5150. I'm also in contact with GoCardless and trying to have them sort it out. The root cause is that they're sending faulty data that then causes the requisition request to fail.
Author
Owner

@lazynooblet commented on GitHub (Jun 13, 2025):

thanks @matt-fidd . Can confirm that replacing gocardless-service.js, with your edited version and restarting the container has allowed me to link an account.

👏 👏 👏

<!-- gh-comment-id:2970671545 --> @lazynooblet commented on GitHub (Jun 13, 2025): thanks @matt-fidd . Can confirm that replacing `gocardless-service.js`, with your edited version and restarting the container has allowed me to link an account. 👏 👏 👏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#9137