You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"with requests.get(addr, auth=HttpNegotiateAuth(), timeout=30) as res:"
an exception is thrown at line 2 which isn't subscriptable so the library throws an exception at line 8. The issue arises when there is an authorization issue with our iis server. Can the library be fixed so I can get a proper response error message? What other info would you need from me?
When executing the following code:
"with requests.get(addr, auth=HttpNegotiateAuth(), timeout=30) as res:"
an exception is thrown at line 2 which isn't subscriptable so the library throws an exception at line 8. The issue arises when there is an authorization issue with our iis server. Can the library be fixed so I can get a proper response error message? What other info would you need from me?
thanks
try:
--> error, auth = clientauth.authorize(sec_buffer)
request.headers['Authorization'] = '{} {}'.format(scheme, base64.b64encode(auth[0].Buffer).decode('ASCII'))
_logger.debug('Sending Response - error={} authenticated={}'.format(error, clientauth.authenticated))
except pywintypes.error as e:
--> _logger.debug('Error calling {}: {}'.format(e[1], e[2]), exc_info=e)
return response
The text was updated successfully, but these errors were encountered: