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

hpe3parclient.exceptions.HTTPInternalServerError: Internal Server Error (HTTP 500) 1 - internal server error #94

Open
csetarun2 opened this issue Dec 13, 2023 · 0 comments

Comments

@csetarun2
Copy link

csetarun2 commented Dec 13, 2023

Hi
I have installed python-3parclient ( https://pythonhosted.org/python-3parclient/tutorial.html )
and enabled wssapi
image

my python code be

`
import json
from hpe3parclient import client, exceptions

USERNAME = 'XXXXXXXXXXX'
PASSWORD = 'YYYYYYYYYYY'
API_URL = 'https://10.XX.YY.ZZZ:8080/api/v1/'

VV_NAME = 'New_5GB_TESTLUN'
NEW_SIZE = '100'

cl = client.HPE3PARClient(API_URL)
cl.setSSHOptions('-oStrictHostKeyChecking=no', '-oUserKnownHostsFile=/dev/null')
cl.login(USERNAME, PASSWORD)

volumes = cl.getVolumes()

Im getting below errors

C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.XX.YY.ZZZ'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\hpe3parclient\client.py", line 449, in getVolumes
response, body = self.http.get('/volumes')
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\hpe3parclient\http.py", line 352, in get
return self._cs_request(url, 'GET', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\hpe3parclient\http.py", line 320, in _cs_request
resp, body = self._time_request(self.api_url + url, method,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\hpe3parclient\http.py", line 297, in _time_request
resp, body = self.request(url, method, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\hpe3parclient\http.py", line 262, in request
raise exceptions.from_response(resp, body)
hpe3parclient.exceptions.HTTPInternalServerError: Internal Server Error (HTTP 500) 1 - internal server error
`

how to fix the issue

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

1 participant