This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
invalid memory address or nil pointer dereference when SOURCE_SECRET_SEED is empty in config #1
Labels
bug
Something isn't working
Milestone
Describe the bug
The bot crashes on startup when trying to print the config details if you don't include the
SOURCE_SECRET_SEED
in the trader config file.I think this behavior is incorrect because the account setup walkthrough and sample config file says that the
SOURCE_SECRET_SEED
is optional.Here is the log of the error:
Expected behavior
I think the correct behavior in this situation is for the bot to not crash if
SOURCE_SECRET_SEED
is missing or empty. The value printed out to the display can always be an empty value in this case.Frequency
The frequency is: Always
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
SOURCE_SECRET_SEED
field to be empty./kelp trade -c sample_trader.cfg -s buysell -f sample_buysell.cfg --sim
Possible Solution
This bug can be fixed by allowing an empty value for the secret key when printing the config.
Your Environment
Context
I am unable to use the same account as the trader account and the source account because of this bug. As a workaround, I'm currently copy-pasting the value in the
TRADER_SECRET_SEED
for theSOURCE_SECRET_SEED
, although I know that's not the intended usage.Attachments
No relevant attachments
The text was updated successfully, but these errors were encountered: