Skip to content

[BUG REPORT] #599

@TrailingStop

Description

@TrailingStop

An error occurred

WORKER:ERROR [2026-03-04T03:53:19.923Z]     UNIQUE constraint failed: users.email, users.username    
  - METHOD_NAME: createSubAccount    
  - STATUS_CODE: 500    
  - STATUS_MESSAGE: Internal Server Error    
  - DATA: {
      "pubRequestParams": {
        "localUsername": "droste"
      },
      "bfxApiErrorMessage": null,
      "errorMetadata": null
    }    
  - STACK_TRACE SqliteError: UNIQUE constraint failed: users.email, users.username
    at module.exports [as RUN] (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/node_modules/bfx-facs-db-better-sqlite/worker/db-worker-actions/action-run.js:8:11)
    at module.exports (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/node_modules/bfx-facs-db-better-sqlite/worker/db-worker-actions/index.js:16:31)
    at module.exports (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/sqlite-worker/db-worker-actions/index.js:21:10)
    at BetterSqliteDAO.query (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:129:20)
    at BetterSqliteDAO.insertElemToDb (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:870:23)
    at Authenticator.createUser (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/authenticator/index.js:961:48)
    at Authenticator.signUp (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/authenticator/index.js:215:29)
    at async C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/sub.account/index.js:214:25
    at async _beginTrans.beforeTransFn.beforeTransFn (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:779:22)
    at async BetterSqliteDAO._proccesTrans (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:184:19)
    at async C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/helpers/manage-transaction/index.js:14:12
    at async module.exports (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/helpers/manage-transaction/index.js:20:17)
    at async C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:242:14
    at async BetterSqliteDAO._beginTrans (C:/Users/X/AppData/Local/Programs/bfx-report-electron/resources/app/bfx-reports-framework/workers/loc.api/sync/dao/dao.better.sqlite.js:250:19)

Debug info
Version 4.41.1
Commit Hash 078e535
Commit Date 2026-02-24T11:58:26Z
Electron 38.1.2
Chrome 140.0.7339.133
Node.js 22.19.0
V8 14.0.365.4-electron.0
OS version Windows 11 Pro
OS release Windows_NT x64 10.0.26200
CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz x 16
RAM 31.89GB (13.34GB free)
App RAM limit 4095.75Mb (14.25MB used)
Is BFX API Staging used No
Is AppImage used No
Main log
Worker errors
Worker exceptions

The issue was opened from the electron app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions