Niraj Posted April 26 Share Posted April 26 Hi Team, I am trying to setup Spotfire co pilot extension locally but having some issue while setting up backend infrastructure. Issue I am facing while Accessing the application API http://localhost:8080/docs . When I try to 'Authorize' in Data Loader its throwing the "Auth ErrorError: Internal Server Error" Logs from container: File "/usr/local/lib/python3.10/site-packages/passlib/handlers/bcrypt.py", line 174, in from_string rounds_str, data = tail.split(u("$")) ValueError: not enough values to unpack (expected 2, got 1) It seems like its is expecting the 2 parameter may be user name and password and it getting only one parameter from the .env variable when I created the docker image but not 100 % sure the exact root cause. Can you please help here. Best Regards, Niraj Container_logs.txt Link to comment Share on other sites More sharing options...
Solution Marcelo Gallardo Posted May 1 Solution Share Posted May 1 Hello @Niraj, Please make sure the password you are using matches the value used to obtain the hashed password as indicated in the instructions. Obtain a secret key which is used to sign the JWT tokens. You can obtain the key using openssl. (i.e. openssl rand -hex 32). Obtain a Bcrypt Hashed Password for the admin user. You can obtain a hashed password online from https://bcrypt-generator.com/. During the installation process, an admin user is set up with a bcrypt hashed password. This hashed password will be used to authorize access to the service’s administrative functions and for generating JWT (Json Web Token) tokens. The tokens will be used for authentication while accessing the service. Please save the password used as it will be needed to get the JWT token. Also note an issue related to Docker Compose when using environment variables that contain the “$” character, especially when working with hashed passwords. If your hashed password contains a “$”, please replace each “$” character with double “$$” to ensure that the password is correctly interpreted. Please let us know if this helps you resolve the issue. Marcelo Gallardo Link to comment Share on other sites More sharing options...
Niraj Posted May 7 Author Share Posted May 7 Hi Marcelo, Thanks for the response. It worked out. At least, I have a way forward now. Best Regards, Niraj Link to comment Share on other sites More sharing options...
Marcelo Gallardo Posted May 7 Share Posted May 7 @NirajGood to hear your issue got resolved. Please feel free to contact us with any other issue or suggestion. We will be delivering a new version that fixes a few issues in the next few days. Stay tuned. Marcelo Link to comment Share on other sites More sharing options...
Niraj Posted June 4 Author Share Posted June 4 Hi Marcelo, Sorry to come back late as I could not proceed after you provided the work around. I am still not able to use the PDF loader instance with Milvus data base. This time , we are trying to setup with latest version of co-pilot. The issue is when connect to /docs path using swagger UI and it throws error (attached the file). FYI: We are using Zilliz account (cloud provided for Milvus data base) for Vector database setup. could you please provide your input. Regards, Niraj container_log.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now