WindmillWWindmill
Powered by
David ZhangD
Windmill•2y ago•
9 replies
David Zhang

Postgres err: insufficient data left in message

I'm not sure how to approach debugging this issue
For this query and inputs (in screenshot) I'm getting the error:
ExecutionErr: error during execution of the script:
db error: ERROR: insufficient data left in message
ExecutionErr: error during execution of the script:
db error: ERROR: insufficient data left in message


-- $1 user_guid
-- $2 network
-- $3 asset
-- $4 direction
-- $5 count_limit
-- $6 amount_limit
-- $7 amount_minimum
INSERT INTO stably.limit_user (
    user_guid,
    network,
    asset,
    direction,
    count_limit,
    amount_limit,
    amount_minimum
)
VALUES (
    $1::UUID,
    $2::VARCHAR,
    $3::VARCHAR,
    $4::VARCHAR,
    $5::INT,
    $6::NUMERIC,
    $7::NUMERIC
)
ON CONFLICT (user_guid, network, direction) 
DO UPDATE SET
    asset = EXCLUDED.asset,
    direction = EXCLUDED.direction,
    count_limit = EXCLUDED.count_limit,
    amount_limit = EXCLUDED.amount_limit,
    amount_minimum = EXCLUDED.amount_minimum;
-- $1 user_guid
-- $2 network
-- $3 asset
-- $4 direction
-- $5 count_limit
-- $6 amount_limit
-- $7 amount_minimum
INSERT INTO stably.limit_user (
    user_guid,
    network,
    asset,
    direction,
    count_limit,
    amount_limit,
    amount_minimum
)
VALUES (
    $1::UUID,
    $2::VARCHAR,
    $3::VARCHAR,
    $4::VARCHAR,
    $5::INT,
    $6::NUMERIC,
    $7::NUMERIC
)
ON CONFLICT (user_guid, network, direction) 
DO UPDATE SET
    asset = EXCLUDED.asset,
    direction = EXCLUDED.direction,
    count_limit = EXCLUDED.count_limit,
    amount_limit = EXCLUDED.amount_limit,
    amount_minimum = EXCLUDED.amount_minimum;


I've tried running this exact same query with the same arguments in another Postgres client (screenshot) but the query runs successfully. I've tried changing the casting syntax but there's too many permutations to try. Is there a way to get more context on the error somehow? There's nothing useful in the logs either
image.png
image.png
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Insufficient execs error
matiasbpg_25163Mmatiasbpg_25163 / help
3mo ago
Migration '20260107133344' in postgres fails
ElectrumEElectrum / help
2mo ago
How to insert JSONB parameter in Postgres Action
amgfredAamgfred / help
2y ago
Handling Heavy Data in Apps
eidnanrohodEeidnanrohod / help
11mo ago