Giter Club home page Giter Club logo

Comments (7)

JazzaG avatar JazzaG commented on May 30, 2024 2

This is caused by the change to util/error-middleware.js in this commit

See https://expressjs.com/en/api.html

Error-handling middleware always takes four arguments. You must provide four arguments to identify it as an error-handling middleware function. Even if you don’t need to use the next object, you must specify it to maintain the signature. Otherwise, the next object will be interpreted as regular middleware and will fail to handle errors.

from actual-server.

sobrinho avatar sobrinho commented on May 30, 2024

Same issue running though docker.

from actual-server.

PartyLich avatar PartyLich commented on May 30, 2024

There might be more relevant info about your setup, but based on the screenshot you've included this section of the readme seems important

Since Actual doesn't know what server to use, the first thing it does is asks you for the server URL. If you are running this project, simply click "Use this domain" and it will automatically fill it in with the current domain. This works because we are serving the app and server in the same place.

from actual-server.

gradiuscypher avatar gradiuscypher commented on May 30, 2024

@PartyLich - I've just tried to spin up a server and have been met with the same issue and same log lines that were in the first screenshot. I've tried using a few variations of the URL including http://localhost:5006 as well as the server's IP address.

If I use localhost as previously mentioned, that page reports back with an "unable to find server". But if I use the server's IP address (which is what is filled out when clicking "Use this domain"), the OK button just turns into a forever spinning loading button and never progresses. There's no notable errors in either the browser console or the server's logs other than what's already been shared. Happy to provide any additional information that might help with debugging.

from actual-server.

gradiuscypher avatar gradiuscypher commented on May 30, 2024

As a quick follow up, I spun up a Docker container on my localhost to see if I could replicate this same bug (previously was hosting on a kubernetes cluster). Experienced the same behavior as before. I've included the full logs from the start of the container up to and including the request that seems to be stalling or erroring.

https://gist.github.com/gradiuscypher/33962aeada25261781b8eb11a21ae953

from actual-server.

PartyLich avatar PartyLich commented on May 30, 2024

I'll have another look and see if I can garner some insight as soon as time allows. At the moment I can't reproduce the problem.

edit: that is to say, my inability to reproduce makes it harder to offer anything of value. I hope i'm not coming across as dismissive, that's definitely not my intent. Apologies if that was the case

from actual-server.

gradiuscypher avatar gradiuscypher commented on May 30, 2024

Not a problem, I'll see if I can take a look at the code sometime in the next few days and potentially narrow down what might be going on. I'm less experienced with JS, so I'm not overly confident in my abilities, but I'm willing to give it a shot :)

from actual-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.