Comments (5)
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.
+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.
Maybe it is better to move the encoding to the client, to avoid blocking the connection process and avoid crashing the connection.
from postgrex.
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.
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)
- Upgrading to OTP 25 causes an issue with SSL with client validation HOT 2
- (Postgrex.Error) ERROR 42P01 (undefined_table) relation "bsc.lib_blks" does not exist HOT 2
- `Postgrex.QueryError` thrown with extensions installed in `heroku_ext` schema HOT 22
- `ArgumentError` when trying to upgrade to elixir 1.14 and otp25 HOT 3
- [Documentation] Broken parameters documentation HOT 1
- scram-sha-256 authentication is slow enough to cause connect timeouts HOT 7
- Jason fails to encode HOT 1
- Pipe in a list within a map not being encoded correctly? HOT 3
- Notifications: auto-reconnect introduces race condition HOT 7
- Error Postgrex.DefaultTypes timestamp with Postgres Wire Protocol v3 compatible db : CrateDB HOT 8
- Unable to connect to QuestDB (postgresql compatible protocol) HOT 2
- Supervisor keyword arguments require a specific order to work HOT 2
- (FunctionClauseError) no function clause matching in Postgrex.Protocol.handle_msg/3 HOT 4
- Unhandled gen_statem Timout Event
- There seems to be something wrong with 0.17 when using subscriptions HOT 5
- Dialyzer error in TypeModule HOT 2
- Incorrect documentation for ssl configuration with Failover
- Closing the connection leaves a query running HOT 2
- Unable to connect to Clickhouse (postgresql compatible protocol) HOT 3
- "missed message" exit and shutdown with Elixir release HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgrex.