The current set of code is very basic. The error handling is virtually none-existing.
However, we do need to add some error handling to avoid simple/obvious issues.
Examples are:
Not setting the HA_* environment variables causes an error from the curl lib. An auth token being invalid does exactly the same.
invalid (unreachable/timing out) URL appears to give "Unsupported protocol" error
The current set of code is very basic. The error handling is virtually none-existing. However, we do need to add some error handling to avoid simple/obvious issues.
Examples are: