Jump to content
We've recently updated our Privacy Statement, available here. ×

Issue to setup backend infrastructure for Spotfire Co-Pilot

Go to solution Solved by Marcelo Gallardo,

Recommended Posts

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,



Link to comment
Share on other sites

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...