langflow
langflow copied to clipboard
ValueError: Error building vertex Astra DB Search: {"errors":[{"message":"Unknown namespace default_keyspace, you must create it first.","errorCode":"NAMESPACE_DOES_NOT_EXIST"}]}
Describe the bug
Running Langflow v1.0.0a24
version locally on macOS Sonoma 14.4.1
and hitting the below error.
ValueError: Error building vertex Astra DB Search: {"errors":[{"message":"Unknown namespace default_keyspace, you must create it
first.","errorCode":"NAMESPACE_DOES_NOT_EXIST"}]}
See the attached file for detailed console error. Follwed the following resources,
- https://pre-release.langflow.org/guides/rag-with-astradb
langflow-rag-with-astra-a24-error-20240423.txt
Browser and Version
- Browser [safari]
- Version [Version 17.3 (19617.2.4.11.8)]
To Reproduce Steps to reproduce the behavior:
- Start following https://pre-release.langflow.org/guides/rag-with-astradb and then you hit this error at the below step,
Screenshots added all applicable details above.
Additional context I'm only using the default Open AI embedding and unsure I'm receiving an error related to Google Vertex AI here. Thank you in advance!
Error with langflow-1.0.0a27
version is attached below for reference.
v1.0.0a27-rag-with-astradb-error-20240429.txt
Hey @msmygit
Thank you!
Looking into it now.
Could you try setting the namespace
in the Advanced parameters of the component?
Thank you @ogabrielluiz . FWIW, I also have ASTRA_DB_NAMESPACE=default_keyspace
on the env file which didn't make a difference, but let me try the advanced section route.
No luck,
Could it be that you are using the wrong credentials?
I just tested it here and it is working.
I tried with the Organization Administrator
role and still the same result. Is there a place where I need to provide the secure connect bundle?
FWIW, in order to validate the token permissions, I also tried using it via a standalone CQLSH and it works fine and I can see the presence of default_keyspace
:
cqlsh-astra-vector % /Users/username/Downloads/cqlsh-astra-vector/bin/cqlsh -u token --disable-history -p 'AstraCS:MASKED' -b /Users/username/Downloads/secure-connect-vector-ec62fc37.zip
Connected to cndb at 127.0.0.1:9042.
[cqlsh 6.8.0 | Cassandra 4.0.0.6816 | CQL spec 3.4.5 | Native protocol v4]
Use HELP for help.
token@cqlsh> DESC KEYSPACES;
system_auth system default_keyspace
data_endpoint_auth datastax_sla system_views
system_schema system_traces system_virtual_schema
token@cqlsh>
Also, attempted to upgrade to langflow-1.0.0a28
with the same result. Is there any other triage info that I could give you to narrow down this issue?
fwiw, logs/langflow.log
is empty too.
Hello @msmygit, Sorry for the delay. Did you try using the new version? Does the error still persist?
Hi @msmygit
We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.
Thank you for your understanding!
Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.