You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
The bot crashes when it cannot handle the response from CCXT. This should be handled more gracefully
Expected behavior
I think the correct behavior in this situation is for the bot to check the type of the returned value and its existence before forcing a cast
Frequency
The frequency is: Sometimes
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
Set up your configuration to use an exchange from the CCXT integration
Set up the CCXT endpoint in such a way that it does not return a valid value for the get ticker information (or maybe even mock it out in the code that parses it)
run the bot, it will crash.
Possible Solution
This bug can be fixed by checking the returned value before forcing a type assertion
Describe the bug
The bot crashes when it cannot handle the response from CCXT. This should be handled more gracefully
Expected behavior
I think the correct behavior in this situation is for the bot to check the type of the returned value and its existence before forcing a cast
Frequency
The frequency is: Sometimes
Steps To Reproduce
Here are the steps to reproduce the issue (see attachments in section below):
Possible Solution
This bug can be fixed by checking the returned value before forcing a type assertion
Your Environment
version: v1.1.0
git hash: 1a62077
build date: 20181022T210554Z
GOOS: linux
GOARCH: amd64
Context
I am unable to run the bot reliably because of this bug.
Attachments
The text was updated successfully, but these errors were encountered: