3 Replies Latest reply: Oct 20, 2017 11:42 AM by Wenxuan Guo RSS

appresponse framework 1.0

Anil Gorgec

Hello ,

 

I have a problem. I tried to connect to the framework with AppResponse .But I did not pass the following error.

Appresponse version :Version: 11.2.1 #14398

 

Can you help me ?

 

My Code:

from steelscript.appresponse.core import appresponse as appliance
from steelscript.common import UserAuth

app_connection = appliance.AppResponse('172.16.189.135', auth=UserAuth('admin', 'admin'),port=443)

Log Print :

Traceback (most recent call last):

  File "/Users/ANILGORGEC/PycharmProjects/demo3/main.py", line 5, in <module>

    app_connection = appliance.AppResponse('172.16.189.135', auth=UserAuth('admin', 'admin'),port=443)

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/appresponse.py", line 135, in __init__

    self._init_services()

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/appresponse.py", line 159, in _init_services

    self.common = CommonService(self)

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/common.py", line 14, in __init__

    self.servicedef = self.appresponse.find_service('common')

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/appresponse.py", line 202, in find_service

    return self.service_manager.find_by_name(

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/types.py", line 47, in __getattribute__

    value = object.__getattribute__(self, name)

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/appresponse.py", line 148, in service_manager

    appl_conn = conn_mgr.find(host=self.host, auth=self.auth)

  File "build/bdist.macosx-10.12-intel/egg/sleepwalker/connection.py", line 132, in find

  File "/Library/Python/2.7/site-packages/steelscript/appresponse/core/appresponse.py", line 102, in connect

    svc = Service("AppResponse", host=host, auth=auth)

  File "/Library/Python/2.7/site-packages/steelscript/common/service.py", line 132, in __init__

    self.check_api_versions(versions)

  File "/Library/Python/2.7/site-packages/steelscript/common/service.py", line 164, in check_api_versions

    self.supported_versions = self._get_supported_versions()

  File "/Library/Python/2.7/site-packages/steelscript/common/service.py", line 193, in _get_supported_versions

    services = self.conn.json_request('GET', path)

  File "/Library/Python/2.7/site-packages/steelscript/common/connection.py", line 328, in json_request

    raw_json=raw_json)

  File "/Library/Python/2.7/site-packages/steelscript/common/connection.py", line 262, in _request

    cookies=self.cookies)

  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 457, in request

    resp = self.send(prep, **send_kwargs)

  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 569, in send

    r = adapter.send(request, **kwargs)

  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 407, in send

    raise ConnectionError(err, request=request)

requests.exceptions.ConnectionError: ('Connection aborted.', error(54, 'Connection reset by peer'))

 

 

Process finished with exit code 1