hummingbot / dashboard

Application that helps you create, backtest, deploy, and manage Hummingbot instances
Apache License 2.0
173 stars 110 forks source link

Credentials - unable to add any API keys #169

Open ZimM-LostPolygon opened 1 month ago

ZimM-LostPolygon commented 1 month ago

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

rapcmia commented 1 month ago

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

ZimM-LostPolygon commented 1 month ago

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 commented 1 month ago

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

ZimM-LostPolygon commented 1 month ago

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.