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
Which would return the string 'machine/', which leads to a MissingSchema: Invalid URL 'machine' when this string is passed as argument into self.__get_json_data.
The text was updated successfully, but these errors were encountered:
First step would be to create a test case. After this look at adding http:// to start of url cadvisor is being initialised with if there is no procotol given.
Initialising a Cadvisor object without a protocol can result in errors when making requests to paths joined onto url.
For example:
Results in that Cadvisor instance's 'get' methods trying to
urljoin
a string onto127.0.0.1:8080
.For example calling
cad.get_machine_info()
:pycadvisor/cadvisor/cadvisor.py
Lines 39 to 41 in d15c00a
In this instance would result in callling
api.machine_info_url
withbase_url
arg set to127.0.0.1:8080
pycadvisor/cadvisor/api.py
Lines 13 to 14 in d15c00a
Which would return the string 'machine/', which leads to a
MissingSchema: Invalid URL 'machine'
when this string is passed as argument intoself.__get_json_data
.The text was updated successfully, but these errors were encountered: