Comments (3)
Usually postgres:///mautrix_googlechat
is enough. If you absolutely need a custom username, it might work with a ?user
query parameter.
from googlechat.
Fair, the username is only really there for consistency. The assumption by the error message seems false though? I didn't even try postgres:///x
because the error message implies that it too would be invalid (given that it's absolute without a host). Maybe that also makes it a yarl issue, afaik a missing host can still be valid even with authority.
from googlechat.
Attempting to use a config like:
appservice: database: postgres://mautrix-googlechat@/mautrix_googlechatNow results in the following failure:
mautrix-googlechat[685955]: File "/lib/python3.9/site-packages/mautrix/bridge/bridge.py", line 168, in prepare_db mautrix-googlechat[685955]: self.db = Database.create( mautrix-googlechat[685955]: File "/lib/python3.9/site-packages/mautrix/util/async_db/database.py", line 66, in create mautrix-googlechat[685955]: url = URL(url) mautrix-googlechat[685955]: File "/lib/python3.9/site-packages/yarl/_url.py", line 167, in __new__ mautrix-googlechat[685955]: raise ValueError("Invalid URL: host is required for absolute urls")
Previously (on bafd1f7 with mautrix-python 0.14) this worked as expected. As far as I know, using an empty host is the only/standard way to indicate connection via local unix socket path rather than connecting over tcp, so I'm not sure what alternatives are meant to be used here?
This can be worked around by finding the actual socket path, and uri-encoding it into the host like
postgres://mautrix-googlechat@%2Frun%2Fpostgresql/mautrix_googlechat
(this may actually be a mautrix-python issue, I'm not sure, should it be moved?)
I'm so sorry
from googlechat.
Related Issues (20)
- Enhancement: Thread Support for Google Chat HOT 1
- received images are too small
- Some chats fail to backfill properly
- Google chat multi line code-blocks do not render properly on element desktop HOT 2
- Probleme start googlechat HOT 2
- Failed to initialize database HOT 1
- Support for new Google Chat spaces with slack-style threads
- Error 500 when mentioning a user in element
- Login Link Broken 404 Error HOT 15
- mautrix/googlechat is not 100% compatible with Element Export Chat HTML with Attachments HOT 1
- Unsupported msgtype m.emote
- Receiving 401 Unauthorized Errors when Sending messages HOT 1
- Potential rewrite using the new official Go SDK? HOT 1
- Unable to log in with login-cookie HOT 13
- How to bulk delete messages on Google Chat Space? HOT 2
- Custom room name for bridges?
- "Those cookies don't seem to be valid" HOT 2
- Cannot write to channel HOT 5
- login-cookie no longer seems to work (logs in for a minute then logs out) HOT 2
- Hypertext links in messages aren't shown
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 googlechat.