ERROR: Command error (PrepareAssertionError): Cannot read properties of undefined (reading 'toLowerCase')
Issue description
ERROR: Command error (PrepareAssertionError): Cannot read properties of undefined (reading 'toLowerCase')
Steps to reproduce the problem
- I am using the ODNWeather library (https://github.com/CosmiCloud/ODNWeather)
- In the ODNWeather log, there is an error "error publishing to the network. Error: Get publish failed. Reason: undefined."
According to a website, the (reading 'toLowerCase') error is due to: The "Cannot read Property 'toLowerCase' of null" error occurs when the toLowerCase() method is called on a variable that stores a null value. To solve the error, make sure to only call the toLowerCase method on strings.
Specifications
- Ubuntu 20.04 (LTS) x64
Error logs (node logs)
journalctl -u otnode --output cat -fn 100
ERROR: Command error (PrepareAssertionError): Cannot read properties of undefined (reading 'toLowerCase')
Disclaimer
Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to [email protected].