Skip to content

TypeError: unsupported operand type(s) for +: 'Configuration' and 'str' #7

@nellaivijay

Description

@nellaivijay

When running simple test script, getting below error message,
`from future import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint

configuration = isi_sdk_8_0.Configuration()
configuration.host = 'https://10.xx.xx.xx:8080'
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
configuration.verify_ssl = False

api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration))
namespace_path = 'namespace_path_example' # str | Namespace path relative to /.
acl = true # bool | Show access control lists.
nsaccess = true # bool | Indicates that the operation is on the access point instead of the store path. (optional)

try:
api_response = api_instance.get_acl(namespace_path, acl, nsaccess=nsaccess)
pprint(api_response)
except ApiException as e:
print("Exception when calling NamespaceApi->get_acl: %s\n" % e)`

Traceback (most recent call last):
File "", line 2, in
File "/usr/lib/python2.7/site-packages/isi_sdk_8_0/apis/protocols_api.py", line 5714, in list_nfs_exports
callback=params.get('callback'))
File "/usr/lib/python2.7/site-packages/isi_sdk_8_0/api_client.py", line 347, in call_api
response_type, auth_settings, callback)
File "/usr/lib/python2.7/site-packages/isi_sdk_8_0/api_client.py", line 168, in __call_api
url = self.host + resource_path
TypeError: unsupported operand type(s) for +: 'Configuration' and 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions