Giter Site home page Giter Site logo

Comments (8)

tolgaOzen avatar tolgaOzen commented on May 28, 2024 1

Hello @jbergstroem, this issue will be resolved in version 0.7.5. We have added it to the roadmap

from permify.

tolgaOzen avatar tolgaOzen commented on May 28, 2024

Hi @jbergstroem , we resolved this issue in version v0.7.5. Could you try it and close the issue if it's resolved?

from permify.

jbergstroem avatar jbergstroem commented on May 28, 2024

Right now it seems to exit with the help flag; not sure how useful that is to have in your logs? Perhaps just exit cleanly with "retries exceeded, exiting"

from permify.

jbergstroem avatar jbergstroem commented on May 28, 2024

Also, the string formatting for the message seems broken (using same docker command as above):

time=2024-02-24T18:27:47.935Z level=ERROR msg="failed to migrate database: %w" !BADKEY="failed to connect to `host=localhost user=user database=db`: dial error (dial tcp [::1]:5432: connect: cannot assign requested address)"
time=2024-02-24T18:28:29.797Z level=ERROR msg="failed to initialize database: %w" !BADKEY="failed to connect to `host=localhost user=user database=db`: dial error (dial tcp [::1]:5432: connect: cannot assign requested address)"

from permify.

tolgaOzen avatar tolgaOzen commented on May 28, 2024

Hello @jbergstroem, we've made an update regarding this. Can you try it in v0.7.7?

from permify.

jbergstroem avatar jbergstroem commented on May 28, 2024

The error stings are now fixed but I still think its strange to exit with a help message? The user is not invoking the command incorrectly, rather passing incorrect options. I would prefer a final error message in style with "Could not connect to database after N retries. Exiting."

from permify.

tolgaOzen avatar tolgaOzen commented on May 28, 2024

Can you open a different issue for this? @jbergstroem

from permify.

jbergstroem avatar jbergstroem commented on May 28, 2024

Closing since it no longer panics.

Move the side thread about exit behavior to #1092

from permify.

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.