-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'async for' requires an object with __aiter__ method, got coroutine #76
Comments
i solved the problem related to the "get_full_data(sync, meili_settings.insert_size)" but i got a new one TypeError: 'async for' received an object from aiter that does not implement anext: coroutine meilisync start |
I wanted to provide a quick update regarding the recent issues we encountered. In light of the numerous errors and their perplexing nature, I decided to leverage Docker as a solution. The transition to Docker has proven to be highly effective, and the application is now running smoothly without any hiccups. It appears that the challenges we faced were rooted in the operating environment, and Docker has provided a robust and reliable workaround. |
I’m using Meilisync using
Edit: looks like an issue with |
@bfontaine, i am stuck in the 2 methods by the error "TypeError: 'async for' requires an object with aiter method, got coroutine" |
After deploying the app using two methods—utilizing Docker containers with Meilisearch and Meilisync installed separately, and creating an EC2 instance with Meilisearch image and Meilisync installed via Docker—we've hit the same roadblock. The error message we're grappling with is: "TypeError: 'async for' requires an object with aiter method, got coroutine." |
@kansoadi I had a custom With this config I have the error: progress:
type: file
path: myprogress.json
# ... With this one I don’t: progress:
type: file
# ... |
@bfontaine,
|
Please try latest source code |
Sure, The latest source code was used; |
I do have the same problem with the latest image, but was able to launch meilisync with older version |
i got something familiar to this error :( |
Hi, @kansoadi Have you resolved the issue? I have the same error debug: true
plugins:
- meilisync.plugin.Plugin
progress:
type: file
source:
type: postgres
host: docker.for.mac.host.internal
port: 5433
database: test
user: postgres
password: <password>
meilisearch:
api_url: http://docker.for.mac.host.internal:7700
api_key: <admin_key>
insert_size: 1000
insert_interval: 10
sync:
- table: games
index: games_index
full: true
fields:
id: |
Hello,
I wanted to bring to your attention some issues I have been experiencing
with Meilisync. Unfortunately, I have noticed many errors while trying to
integrate it into my app, which has made the process quite difficult.
It seems that Meilisync may require more thorough testing from its
developer, especially when it comes to working with Postgresql. I have
noticed that the replication increases in size and ultimately causes the
app to crash. Additionally, it does not sync properly with the dedicated
table(s), leading to discrepancies in the data.
I believe that addressing these issues and conducting further tests on
Meilisync, particularly with Postgresql integration, will greatly improve
its functionality and usability. I appreciate your attention to this matter
and look forward to a resolution.
Thank you.
…On Thu, May 23, 2024 at 1:01 PM Yurii Poliakov ***@***.***> wrote:
Hi, @kansoadi <https://github.com/kansoadi> Have you resolved the issue?
I have the same error
*"TypeError: 'async for' requires an object with aiter method, got
coroutine"*
Config below
debug: trueplugins:
- meilisync.plugin.Pluginprogress:
type: filesource:
type: postgres
host: docker.for.mac.host.internal
port: 5433
database: test
user: postgres
password: <password>meilisearch:
api_url: http://docker.for.mac.host.internal:7700
api_key: <admin_key>
insert_size: 1000
insert_interval: 10sync:
- table: games
index: games_index
full: true
fields:
id:
—
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTTFFXOTPTZ5SHBGHHV5SDZDW47BAVCNFSM6AAAAABCPTYT32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWG4YTCOBXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi, |
bump |
For anyone else having this problem with the official docker image - the official image (as of about 1 week prior to this message) was using version 0.1.2 - whereas this bug was seemingly fixed in 0.1.3. I forked the repository, built the image myself and that seems to have fixed this issue. |
Hi, I still have the same error : debug: true
plugins:
- meilisync.plugin.Plugin
progress:
type: file
meilisearch:
api_url: ${MEILISEARCH_API_URL}
api_key: ${MEILISEARCH_API_KEY}
insert_size: 1000
insert_interval: 10
source:
type: postgres
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
database: ${POSTGRES_DB}
user: postgres
password: ${POSTGRES_PASSWORD}
sync:
- table: movie
index: movies
full: true Btw environment variable dont work with docker-compose |
Not sure if it helps anyone, but for me the error went away when I created an empty index in meilisearch for the table I was trying to sync. |
Thx for ur reply, in fact creating the index first fix the issue. But now I have another issue with syncing and Im not sure meilisync can sync children of a table (with relation one-to-many, one-to-one,...) |
i got the same error, when i start docker-compose.
and this is my config.yml
my
|
For syncing databases with PostgreSQL and Meilisync,
I installed and configured Meilisync (windows 10) by following the steps in https://www.meilisearch.com/docs/learn/cookbooks/meilisync_postgresql
Meilisync was well-configured:
1-
2- but for the Meilisync start, i received
TypeError: 'async for' requires an object with aiter method, got generator
returned from
C:\Python312\Lib\site-packages\meilisync\main.py:96 in _ │
│ │
│ 93 │ │ for sync in settings.sync: │
│ 94 │ │ │ if sync.full and not await meili.index_exists(sync.index_name): │
│ 95 │ │ │ │ count = 0 │
│ > 96 │ │ │ │ async for items in await source.get_full_data(sync, meili_settings.inser │
│ 97 │ │ │ │ │ count += len(items) │
│ 98 │ │ │ │ │ await meili.add_data(sync, items) │
│ 99 │ │ │ │ if count:
the config.yml:
kindly, Any idea on how to solve this issue?
The text was updated successfully, but these errors were encountered: