IBM / python-sdk-core

The python-sdk-core repository contains core functionality required by Python code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
20 stars 27 forks source link

Connecting to IBM Cloud through a proxy #31

Closed itzzi closed 5 years ago

itzzi commented 5 years ago

Hi! We are behind a proxy which needs authentication. We tried to pass the user, passw and proxies through the set_http_config() method:

http_config = {
   "proxies": {
         "http": "user:password@host:port"
     }
}
speech_to_text.set_http_config(http_config)

Still, we get a ‘407 proxy auth required’. We managed to send a request to IBM Cloud with requests library. However, when we try to replicate the behaviour with the sdk, we get the same error. It seems that when the token is requested in the IAM Token Manager (inside ibm_cloud_sdk_core), the proxies configuration is not included in the request… cause it fails connecting to iam.bluemix.net.

Thanks!

germanattanasio commented 5 years ago

HI @itzzi, thanks for reporting the issue. We are looking at it

watson-github-bot commented 5 years ago

:tada: This issue has been resolved in version 0.5.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: