-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Cannot set a server for chroma db component because it no longer compiles due to chroma_server_cors_allow_origins value is not a valid list #1882
Comments
To address the compilation failure of the Chroma db component due to the
Make sure all configuration field names are correctly spelled and the data types match the expected types. For SSL configurations, ensure By correcting these configurations, you should be able to resolve the compilation issues.
|
To resolve the
By ensuring the CORS origins are correctly formatted as a list of strings and using the correct field names for server port configurations, you should be able to compile the Chroma component successfully and address the CORS policy violations.
|
I used the exact list, and it still has the same error: |
Given the persistent issue with the
By focusing on these specific areas, you should be able to address the configuration issues you're facing with the Chroma db component. If the problem persists, providing more detailed information about your configuration steps and any additional error messages could help further diagnose the issue.
|
I have tried those values as well, and still the same error @dosu |
It appears the issues you're encountering with the
Ensure all dependencies are up to date, as sometimes these issues are addressed in newer versions of the libraries involved. Adding detailed logging around the construction and use of If after these adjustments you're still facing the same errors, it would be beneficial to review the exact configuration code or steps you're using to set up the Chroma db component, as there might be other factors at play causing these errors.
|
Actually, the bug is not in the cors list at all, but in changing the server. To reproduce:
|
The issue with the To address this, ensure that the chroma_settings = chromadb.config.Settings(
chroma_server_cors_allow_origins=[chroma_server_cors_allow_origins] if chroma_server_cors_allow_origins else [],
...
) This adjustment ensures that the If the problem persists after making these changes, it might be beneficial to review the entire configuration process for any other potential misconfigurations or to check for updates in the libraries involved that might address these issues.
|
Hi team, err: |
For Development / Test environmentsCreate SYSTEM environment variable name: Set variable value (including the square brackets and double quotes): For Production / Live environmentsFirstly, if the web developer tools console shows the below error, reporting the origin as "null": Access to fetch at 'http://localhost:8000/api/v1/version' from origin 'null' has been blocked by CORS policy: This is when you're running the "index.html" web app as a file Secondly, once you've hosted the web app, but see this error instead: Access to fetch at 'http://localhost:8000/api/v1/version' from origin 'http://localhost:80' has been blocked by CORS policy: You need to add "http://localhost:80" (or whatever your port is that you're hosting the web app on) if you have multiple ports, or hosts, then you write the environment variable value like this (including the square brackets): ["http://localhost:80", "http://localhost:5678", "http://192.168.100.10:6000", "http://192.168.100.20:6000"] and remember to kill and restart ChromaServer in between any of these changes. |
Hi, You may have installed chromadb globally with npm. Delete it and try again. |
Describe the bug
When you use a chroma vector store with a locally running chroma instance (at 127.0.0.1:8000), the chroma component doesn't compile
Browser and Version
Safari Version 17.4 (19618.1.15.11.12)
this is using langflow vs 1.0.0.30a
To Reproduce
The text was updated successfully, but these errors were encountered: