Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Moudar
Advisor

Import fails

Hi

Following the sk180923 I could export but when try to import i get this:

1. Change Settings
2. Run
99. Exit
2
Traceback (most recent call last):
  File "import_export_package.py", line 49, in <module>
    payload=payload)
  File "/home/admin/cp_mgmt_api_python_sdk/cpapi/mgmt_api.py", line 218, in login
    return self._common_login_logic(credentials, continue_last_session, domain, read_only, payload)
  File "/home/admin/cp_mgmt_api_python_sdk/cpapi/mgmt_api.py", line 176, in _common_login_logic
    self.sid = login_res.data["sid"]
KeyError: 'sid'

The command I am using is:

[Expert@CPBASE_81_20:0]# python3 import_export_package.py -op import -n Standard -f /home/admin/exported__package__Standard__2024_11_08_15_28.tar.gz -u admin -p Admin123

 

So the username and password are 100% correct but still get this error

version 81.20 SMS

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

To make 100% certain your credentials are correct, try: mgmt_cli -u admin -p Admin123 login 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events