Skip to content
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

Credentials - unable to add any API keys #169

Open
ZimM-LostPolygon opened this issue Jul 31, 2024 · 5 comments
Open

Credentials - unable to add any API keys #169

ZimM-LostPolygon opened this issue Jul 31, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ZimM-LostPolygon
Copy link

ZimM-LostPolygon commented Jul 31, 2024

Describe the bug

Trying to add credentials for any connector always fails. Standalone client works just fine with those same credentials.

Steps to reproduce bug

  1. Install using the "deploy" repo according to docs: https://hummingbot.org/installation/docker/#installation-hummingbot-20
  2. Go to Credentials page. Create a new account
  3. Try to add credentials for 'kucoin' connector
  4. Observe the 'NoneType' object has no attribute 'encrypt_secret_value' error.

image

In the backend-api container log, there's a line:
"POST /add-connector-keys/kucoin_test/kucoin HTTP/1.1" 400 Bad Request

UPD: this happens with any connector, not just Kucoin

@ZimM-LostPolygon ZimM-LostPolygon added the bug Something isn't working label Jul 31, 2024
@ZimM-LostPolygon ZimM-LostPolygon changed the title Credentials - unable to add Kucoin API keys Credentials - unable to add any API keys Jul 31, 2024
@rapcmia
Copy link
Contributor

rapcmia commented Jul 31, 2024

Kucoin and other connectors works on latest and using setup.sh from deploy repo
image
image
image
image

Can you try again to reproduce the error then:

  1. Go to terminal and run docker compose log backend-api
  2. Send the screenshot of the terminal so we can check the traceback of the error

Thank you

@rapcmia rapcmia self-assigned this Jul 31, 2024
@ZimM-LostPolygon
Copy link
Author

There is no traceback. The only relevant line is the one I've already posted:
"POST /add-connector-keys/kucoin_test/kucoin HTTP/1.1" 400 Bad Request

image

I've tried 3 different machines, it's always the same error for me, both with docker-compose.yml and docker-compose-dev.yml

@rapcmia
Copy link
Contributor

rapcmia commented Jul 31, 2024

Thanks for the response @ZimM-LostPolygon i will have a look if I can reproduce this issue this week

@ZimM-LostPolygon
Copy link
Author

Looking at backend-api code though, there are only two places encrypt_secret_value is mentioned:
image

And judging from the 'NoneType' object has no attribute 'encrypt_secret_value' error, that means secrets_manager is None 🤔 I can't think of any reason why that could be...

I thought about running backend-api locally to debug it, but Conda activation always there as well on any of my machines, unfortunately.

@gdhaworth
Copy link

Looking at backend-api code though, there are only two places encrypt_secret_value is mentioned: image

And judging from the 'NoneType' object has no attribute 'encrypt_secret_value' error, that means secrets_manager is None 🤔 I can't think of any reason why that could be...

I thought about running backend-api locally to debug it, but Conda activation always there as well on any of my machines, unfortunately.

Seems to be fixed by changing the environment variable CONFIG_PASSWORD=hunter2 to CONFIG_PASSWORD=a in the backend-api container. I looked through the code briefly and think this might have something to do with https://github.com/hummingbot/deploy/blob/main/bots/credentials/master_account/.password_verification but I'm not sure how that's generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants