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
The username listed below able to connect to PAW and ARC without issue. When i try running below to connect to tm1 server, it is giving the error message. what could be the issue ?
with TM1Service(address="SERVER.global.corp", port=8864, ssl=True, user="[email protected]", password="password", namespace="AD") as tm1: print(tm1.server.get_product_version())
Describe what's not working the way you expect Traceback (most recent call last): File "D:\TM1Models\TM1_Prd\Scripts\tm1_SetAccountCreds.py", line 75, in <module> SetCreds() File "D:\TM1Models\TM1_Prd\Scripts\tm1_SetAccountCreds.py", line 70, in SetCreds with TM1Service(**config[INSTANCE]) as tm1: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\TM1Service.py", line 64, in __init__ self._tm1_rest = RestService(**kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 183, in __init__ self.connect() File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 331, in connect self._start_session( File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 749, in _start_session self.verify_response(response) File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 886, in verify_response raise TM1pyRestException(response.text, TM1py.Exceptions.Exceptions.TM1pyRestException: Text: '' - Status Code: 401 - Reason: 'Unauthorized' - Headers: {'Content-Type': 'text/plain', 'Content-Length': '0', 'Connection': 'keep-alive', 'Set-Cookie': 'TM1SessionId=v5RDPAaU9T5LkzGnr0o2eCCcXmg; Path=/api/; HttpOnly; Secure', 'WWW-Authenticate': 'CAMPassport https://CAMSERVER.global.corp:9300/bi/v1/disp, CAMNamespace'}
Version
Python 3.12
TM1py 2.0.4
TM1 Server Version: 2.1.7
The text was updated successfully, but these errors were encountered:
Describe what did you try to do with TM1py
The username listed below able to connect to PAW and ARC without issue. When i try running below to connect to tm1 server, it is giving the error message. what could be the issue ?
with TM1Service(address="SERVER.global.corp", port=8864, ssl=True, user="[email protected]", password="password", namespace="AD") as tm1: print(tm1.server.get_product_version())
Describe what's not working the way you expect
Traceback (most recent call last): File "D:\TM1Models\TM1_Prd\Scripts\tm1_SetAccountCreds.py", line 75, in <module> SetCreds() File "D:\TM1Models\TM1_Prd\Scripts\tm1_SetAccountCreds.py", line 70, in SetCreds with TM1Service(**config[INSTANCE]) as tm1: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\TM1Service.py", line 64, in __init__ self._tm1_rest = RestService(**kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 183, in __init__ self.connect() File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 331, in connect self._start_session( File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 749, in _start_session self.verify_response(response) File "D:\Program Files\Python312\Lib\site-packages\TM1py\Services\RestService.py", line 886, in verify_response raise TM1pyRestException(response.text, TM1py.Exceptions.Exceptions.TM1pyRestException: Text: '' - Status Code: 401 - Reason: 'Unauthorized' - Headers: {'Content-Type': 'text/plain', 'Content-Length': '0', 'Connection': 'keep-alive', 'Set-Cookie': 'TM1SessionId=v5RDPAaU9T5LkzGnr0o2eCCcXmg; Path=/api/; HttpOnly; Secure', 'WWW-Authenticate': 'CAMPassport https://CAMSERVER.global.corp:9300/bi/v1/disp, CAMNamespace'}
Version
The text was updated successfully, but these errors were encountered: