Comments (7)
@p7gg Thanks for the video!
So you run both Supabase and Electric as Docker containers, but they both end up on separate virtual networks. Docker creates an isolated network for each container, or for a set of containers if you're using docker compose
. Containers on the same network can see each other but they cannot see containers on other networks.
In your case, Supabase's localhost
, or 127.0.0.1
, is different from Electric's localhost
. You can think of them both as if they're running on separate machines.
If Supabase exposes its port to the host OS, your Electric should be able to connect to it if you add this key under your electric
service definition in the compose file:
extra_hosts:
- "host.docker.internal:host-gateway"
and replace 127.0.0.1
with host.docker.internal
in DATABASE_URL
.
If you have further questions, please start a new thread in the #help-and-support channel in our Discord community or a new GitHub discussion here.
from electric.
same problem
from electric.
Hey @masylum and @p7gg. You must have followed an older version of the guide. The ELECTRIC_INBOUND_MODE
variable has since been renamed to ELECTRIC_WRITE_TO_PG_MODE
. See the up-to-date guide here.
from electric.
@alco I believe i had the right variable, although i had the same error.
I'll try and record a video, since I was running everything locally: supabase and electricsql
from electric.
Sorry for the delay, got slumped with work, @alco .
Realized that it wasn't the same error, but still getting one...
Might be because of my lack of docker knowledge tho. any pointers is greatly appreciated
issue-electricsql.mp4
from electric.
Hey @masylum and @p7gg. You must have followed an older version of the guide. The
ELECTRIC_INBOUND_MODE
variable has since been renamed toELECTRIC_WRITE_TO_PG_MODE
. See the up-to-date guide here.
This fixed the issue. Lesson learned, reload the tabs once in a while! Thanks for the support and this awesome project
from electric.
@alco thank you very much.
Ran into another error, but I'll just reach out to the discord community, if I don't get a solution i'll post in the discussions for sure.
from electric.
Related Issues (20)
- pglite migrations created against a supabase database are invalid HOT 1
- pg-migration.ts index creation fails HOT 1
- Generated client Postgres migrations incorrectly split HOT 1
- Upgrade electricsql from 0.10.1 to 0.11.1, can't connect to electric proxy service HOT 2
- Non-atomic transactions with intermediate reads are common HOT 3
- npm ERR! Cannot read properties of null (reading 'matches') HOT 3
- Improve client generation failure messages at the client level HOT 1
- Delayed/Failure to read your writes, lost writes are common HOT 4
- when select where item contains in json array, array_constiains key not recognize, how to filter if json type constains element HOT 2
- Can't load data when phone is offline in Expo app HOT 5
- [BUG] Syntax error CREATE_REPLICATION_SLOT when install electric-sql with docker HOT 8
- MODULE ERROR: Electric.Replication.PostgresConnector HOT 2
- Possible issue in the new ShapeManager code. HOT 3
- SQLite/PGLite not fully compatible with NextJS HOT 4
- Inactive replication slot causing warnings on DO managed Postgres HOT 6
- Demo example with PostGis plugin?? HOT 1
- Error: FOREIGN KEY constraint failed HOT 4
- [rpc] recv: #SatInStartReplicationResp{`Error: Cannot catch up to the server's current state`} HOT 1
- Unable to install electric-sql on MacOS & Node@22 HOT 2
- Zod rejects UUIDs that Postgres deems valid HOT 1
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 electric.