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

[Bug]: Error after updating to 24.11.0 - TypeError: path must be absolute or specify root to res.sendFile #3919

Closed
2 tasks done
ykiran opened this issue Dec 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ykiran
Copy link

ykiran commented Dec 1, 2024

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

I've updated to the latest version 24.11.0 following these steps:

  • Stop server
  • Run git pull
  • yarn install
  • yarn start

And then I opened the browser to: localhost:5006

Message shown was "Initializing connection to local database....." seemed stuck so I refreshed the page and now the page asks me to "Download File" and I do so. Again, the page is stuck on "Downloading" message.

Here is the output I see currently in the terminal:

Kiran@Kiran-PC D:\Actual\actual-server git:(master)
(0) > yarn start

Checking if there are any migrations to run for direction "up"...
Migrations: DONE
Listening on :::5006...
2024-12-01T11:46:35.498Z info: GET 200 /account/validate
2024-12-01T11:46:35.510Z info: GET 200 /sync/list-user-files
2024-12-01T11:46:35.565Z info: GET 304 /account/validate
Rejection: TypeError: path must be absolute or specify root to res.sendFile
at ServerResponse.sendFile (D:\Actual\actual-server\node_modules\express\lib\response.js:441:11)
at file:///D:/Actual/actual-server/src/app-sync.js:297:7
at Layer.handle [as handle_request] (D:\Actual\actual-server\node_modules\express\lib\router\layer.js:95:5)
at next (D:\Actual\actual-server\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (D:\Actual\actual-server\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (D:\Actual\actual-server\node_modules\express\lib\router\layer.js:95:5)
at D:\Actual\actual-server\node_modules\express\lib\router\index.js:284:15
at Function.process_params (D:\Actual\actual-server\node_modules\express\lib\router\index.js:346:12)
at next (D:\Actual\actual-server\node_modules\express\lib\router\index.js:280:10)
at jsonParser (D:\Actual\actual-server\node_modules\body-parser\lib\types\json.js:113:7)
2024-12-01T11:46:37.086Z info: GET 200 /sync/get-user-file-info

Please help.
Thanks in advance.

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Firefox

Operating System

Windows 10

@ykiran ykiran added the bug Something isn't working label Dec 1, 2024
@MatissJanis
Copy link
Member

MatissJanis commented Dec 8, 2024

👋 Please reach out via the community discord for tech support. You'll have much more luck there.

Closing as this isn't a bug as far as I can see.

@MatissJanis MatissJanis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants