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
Gateway error: received an empty stream from the client #4593
Comments
My guess is that the paths are not well set and then nothing is being sent through the client |
Can you please specify which paths you meant here? |
jina is probably too old? |
I tried this one: Environment:
Error: ModuleNotFoundError: Dependencies listed in requirements.txt are not all installed locally, this Executor may not run as expect. To install dependencies, add My modified requirements.txt
Couldn't try Am I missing something here? |
Hey @Jackal1586 , As u see in the requirements, the multires-lyrics-search is requiring |
But most importantly, have you run the preliminary steps to make sure that the |
Yes, I've followed the instructions of |
Hey @Jackal1586 , could you try putting some printline in this line https://github.com/jina-ai/examples/blob/d8f903278597254bd96b1ed64fe8c9feefaa265c/multires-lyrics-search/helper.py#L11 and check what is the path it is searching for? And validate there is indeed data in that folder? |
I wrote several debug statements, my def input_generator(num_docs: int):
lyrics_file = os.environ.setdefault(
"JINA_DATA_FILE", "lyrics-data/lyrics-toy-data1000.csv"
)
print("\n"*20, "debug", "\n"*5)
print("lyrics_file: ", lyrics_file)
print("os.path.exists: ", os.path.exists(lyrics_file))
print("from os.system(f\"tail -5 \{lyrics_file\}\")")
print(os.system(f"tail -5 {lyrics_file}"))
print("\n"*5, "debug end", "\n"*20)
with open(lyrics_file, newline="", encoding="utf-8") as f:
reader = csv.reader(f)
for row in it.islice(reader, num_docs):
if row[-1] == "ENGLISH":
d = Document(text=row[3])
d.tags["ALink"] = row[0]
d.tags["SName"] = row[1]
d.tags["SLink"] = row[2]
yield d And the corresponding output:
Please let me know if I need to provide any other information. |
Can you make sure that there is at lease one document being generated? Like does this generator even |
I put a counter there, it yielded nothing. The counter value is |
I found
Should I do something more to fix this one? |
Query is failing with the following error:
I didn't change anything except for the ones mentioned here. |
This is now related to the |
You are working with a version of Jina that does not match the one expected by the |
I see. Thank you for the guidance. Now which version should I go for? Any version above |
I believe, what you need is to fix the versions of every Hub Executor to an older version that is not on 3.0 |
Ok, let me try this. I will post update on this issue after doing this change. |
After lot of trail and error, I did the following acts. I tried to change Hub Executor versions in The
I then had to install During the indexing,
It was stuck here for 2 hours. I am at a loss about fixing it. Can you please help me on my next course of actions, @JoanFM ? |
Hey @Jackal1586 , What is the version of |
For reference, I am providing my current environment here. |
Have u checked this part of documentation? |
I only read parts related to cors and experimented accordingly. Like using |
Ah well, this is because |
Then what should be my next course of action if I want to run the full cycle as shown in |
You should migrate your Flow to 3.3.x with the Executor versions compatible with 3.x and also the client code adapted. |
Ok, let me study the documentation related to migration, and experiement. I will post my results. |
I solve the same question by your way,thanks |
Description
I encountered an error in
flow.post
method while trying to runpython app.py -t index
in multires-lyrics-search after cloning this repository: examples. The error message was:gateway@61291[E]:receive an empty stream from the client! please check your client's inputs, you can use "Client.check_input(inputs)"
.Environment
The text was updated successfully, but these errors were encountered: