Skip to content

Conversation

drewlyton
Copy link

@drewlyton drewlyton commented Aug 24, 2025

In the d2ts package, there is an error in the electricStreamToD2Input where the function assumes/requires global_last_seen_lsn to be a number, but it is a string.

Without this fix, the d2ts pipeline crashes and doesn't properly connect and read data from the stream.

image: electricsql/electric:latest
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric?sslmode=disable
ELECTRIC_INSECURE: true
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also adds new ELECTRIC_INSECURE env variable to the docker-compose file

@drewlyton
Copy link
Author

This actually might just be a greater problem where @electric-sql/d2ts just has some mismatched types to the TS client. I'm getting a similar error when reading the lsn header as well (expects number but it is a string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant