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

(HTTP 500) 1 - internal server error when trying to login #63

Open
gabidragan opened this issue Mar 19, 2019 · 0 comments
Open

(HTTP 500) 1 - internal server error when trying to login #63

gabidragan opened this issue Mar 19, 2019 · 0 comments

Comments

@gabidragan
Copy link

Hello,
I'm trying to login to a 3PAR but I got the HTTP 5000 error:

REST_URL='https://10.250.7.6:8080/api/v1'
REST_URL
'https://10.250.7.6:8080/api/v1'
cl = client.HPE3ParClient(REST_URL)

REQ: curl -i https://10.250.7.6:8080/api -X GET -H "User-Agent: python-3parclient" -H "Accept: application/json"

/home/gabrield/venv/venv3.6_wsapi/lib64/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
RESP:{'Date': 'Tue, 19 Mar 2019 06:55:31 GMT'
'Server': 'hp3par-wsapi'
'Cache-Control': 'no-cache'
'Pragma': 'no-cache'
'Content-Type': 'application/json'
'Connection': 'close'
'status': '200'
'content-location': 'https://10.250.7.6:8080/api'}

RESP BODY:{"major":1,"minor":5,"revision":3,"build":30202750}

cl.login(username, password)

REQ: curl -i https://10.250.7.6:8080/api/v1/credentials -X POST -H "User-Agent: python-3parclient" -H "Accept: application/json" -H "Content-Type: application/json"

REQ BODY: {"user": "gabrield", "password": "********"}

/home/gabrield/venv/venv3.6_wsapi/lib64/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
RESP:{'Date': 'Tue, 19 Mar 2019 06:55:52 GMT'
'Server': 'hp3par-wsapi'
'Content-Type': 'application/json'
'Connection': 'close'
'status': '500'
'content-location': 'https://10.250.7.6:8080/api/v1/credentials'}

RESP BODY:{"code":1,"desc":"internal server error"}

Traceback (most recent call last):
File "", line 1, in
File "/home/gabrield/venv/python-3parclient/hpe3parclient/client.py", line 294, in login
self.http.authenticate(username, password, optional)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 124, in authenticate
resp, body = self.post('/credentials', body=info)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 376, in post
return self._cs_request(url, 'POST', **kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 321, in _cs_request
**kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 297, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/home/gabrield/venv/python-3parclient/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

The WSAPI server is enabled:
showwsapi -d
-----------------WSAPI Server Configuration-----------------
service State : Enabled
server State : Active
HTTP State : Disabled
HTTP Port : 8008
HTTPS State : Enabled
HTTPS Port : 8080
Number of sessions In Use : 0
System Resource Usage : 72
Version : 1.5.3
Session Timeout : 15 Minutes
Policy : tls_strict
API URL : https://10.250.7.6:8080/api/v1

Can you please tell me what am I doing wrong?

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