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
at the moment I try out the features to get, create and delete TM1 Instances using functions in Util.py
The following functions doesnt work for my setup with v11.
create_server_on_adminhost
delete_server_on_adminhost
update_server_on_adminhost
The error message ist:
Traceback (most recent call last):
File "D:\dev\tm1-deploy\tm1server.py", line 29, in
create_server_on_adminhost(server_as_dict=new_server)
File "D:\dev\tm1-deploy.venv\Lib\site-packages\TM1py\Utils\Utils.py", line 205, in create_server_on_adminhost
response.raise_for_status()
File "D:\dev\tm1-deploy.venv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:5895/Servers
The function get_all_servers_from_adminhost works.
I think the following change in commit 4a47b53 breaks these functions because the api version is moved to the base_url property of the RestService. But the functions in Utils doesn't use the RestService. They construct the url itselfs.
The changes were necessary to enable a connection to v12 in IBM Cloud. Are these adminhost feature still available in v12?
Here one example of the changed code.
old url = f"http://{adminhost}:5895/api/v1/Servers"
Hi,
at the moment I try out the features to get, create and delete TM1 Instances using functions in Util.py
The following functions doesnt work for my setup with v11.
The error message ist:
The function get_all_servers_from_adminhost works.
I think the following change in commit 4a47b53 breaks these functions because the api version is moved to the base_url property of the RestService. But the functions in Utils doesn't use the RestService. They construct the url itselfs.
The changes were necessary to enable a connection to v12 in IBM Cloud. Are these adminhost feature still available in v12?
Here one example of the changed code.
old
url = f"http://{adminhost}:5895/api/v1/Servers"
new
url = f"http://{adminhost}:5895/Servers"
https://github.com/cubewise-code/tm1py/blame/4a5fed26a9bd378091d9581c46f1fb55910b0f6f/TM1py/Utils/Utils.py#L203
The text was updated successfully, but these errors were encountered: