Code Monkey home page Code Monkey logo

Comments (5)

ericmj avatar ericmj commented on May 18, 2024

Encoding errors seem to produce enormous FunctionClause errors so we should add a pokemon clause that generates a nicer error message. The failing oid and inspected term should be enough for the message and if possible also translate the oid to a type name).

from postgrex.

jarkko avatar jarkko commented on May 18, 2024

+1. I just ran into this when trying to insert a Date.now timestamp from JS to an integer column. Took a while to figure out what was going on.

from postgrex.

josevalim avatar josevalim commented on May 18, 2024

Maybe it is better to move the encoding to the client, to avoid blocking the connection process and avoid crashing the connection.

from postgrex.

ericmj avatar ericmj commented on May 18, 2024

We can't encode in the client because we need type information from the server first. We can wrap the encoding in try/catch and just log the error though.

from postgrex.

josevalim avatar josevalim commented on May 18, 2024

We need this to be high priority. It is confusing for a lot of users, I will work on this now.

from postgrex.

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.