Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to the spirent server test sesson #24

Open
KetanBansal opened this issue Apr 29, 2021 · 2 comments
Open

Error connecting to the spirent server test sesson #24

KetanBansal opened this issue Apr 29, 2021 · 2 comments

Comments

@KetanBansal
Copy link

from stcrestclient import stchttp
stc = stchttp.StcHttp('10.192.116.1')
stc.set_timeout(5)
sid = stc.new_session('abc', 'Password1234!')
print(type(sid))
stc.system_info()

When i am trying to connect to the server it is giving me the error below.

Traceback (most recent call last):
File "testing_spirent.py", line 17, in
sid = stc.new_session('abc', 'Password1234!')
File "/usr/local/lib/python3.6/site-packages/stcrestclient/stchttp.py", line 135, in new_session
sid = data['session_id']
TypeError: string indices must be integers

@KetanBansal
Copy link
Author

mohit@automationvm Spirent_testing]$ python -m stcrestclient.systeminfo "10.192.116.1"
ERROR string indices must be integers, not str
[mohit@automationvm Spirent_testing]$ stcinfo 10.192.116.1
ERROR string indices must be integers

@jmkho-spirent
Copy link
Collaborator

Sorry for the delayed response. Are you running against stcweb or a labserver? Which version of STC are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants