Giter Club home page Giter Club logo

Comments (4)

weiznich avatar weiznich commented on August 19, 2024

I've tried your minimal example locally and the tests passes for my setup. Additionally this issue indicates that this error also might be returned if your connection URL is somehow invalid. I agree that this error message is not optimal, but that's an issue in bb8 then.

Closed that I'm not able to reproduce the issue locally with a valid database URL.

from diesel_async.

peng-huang-ch avatar peng-huang-ch commented on August 19, 2024

Thank you for your reply. I don't think it's a URL issue. I have provided a repo to reproduce the issue.

image

from diesel_async.

weiznich avatar weiznich commented on August 19, 2024

I've checked your repo and I cannot reproduce the issue with that either. Both tests complete successful for me. Again I believe that this is just an issue with your database URL. Please note that diesel::PgConnection and diesel_async::AsyncPgConnection do not necessarily support the same database URL params/format. They are completely different implementations that support a different set of parameters. Just because a database URL works with one of the implementations it does not necessarily mean that it will work with the other implementation as well. Checkout the documentation of both types to learn about the required format.

from diesel_async.

peng-huang-ch avatar peng-huang-ch commented on August 19, 2024

Once I change my url format to the postgres://${whoami}@localhost/signatures, the test passed.
The connection URLs should be in the form postgres://[user[:password]@]host/database_name
Thanks again.

from diesel_async.

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.