If the response from httpGet returns a non-success status code (ie 401), the library fails silently and returns an empty JSON slice. It'd be great if non-success statuses could be made more evident in some manner, via panic, logging, or some other manner.
I'm uncertain of what your preferences or thoughts on this might be otherwise I'd present a solution to this.
If the response from httpGet returns a non-success status code (ie 401), the library fails silently and returns an empty JSON slice. It'd be great if non-success statuses could be made more evident in some manner, via panic, logging, or some other manner.
I'm uncertain of what your preferences or thoughts on this might be otherwise I'd present a solution to this.