You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/04 15:51:19 UTC

[GitHub] tleyden opened a new issue #43: Unable to create request URL, because OpenWhisk API host is missing

tleyden opened a new issue #43: Unable to create request URL, because OpenWhisk API host is missing
URL: https://github.com/apache/incubator-openwhisk-client-go/issues/43
 
 
   When I build against version of https://github.com/apache/incubator-openwhisk-client-go/commit/ad5aa3402b033edd8b30aec7f33434a253aa35ed and run on IBM Cloud, [this code](https://github.com/tleyden/keynuker/blob/110c0a672b75a4ccf5331bc08f2fc3fe354ac1c1/openwhisk_status.go#L111) is getting an error:
   
   ```
   Unable to create request URL, because OpenWhisk API host is missing"
   ```
   
   even though `__OW_API_HOST` and `__OW_API_KEY` are set to correct values in the environment (which is expected since it's running on IBM Cloud)
   
   This same code was working fine against an older commit (https://github.com/apache/incubator-openwhisk-client-go/commit/b3d194d8b937a801ee11efcf7f2544d9cea1f58e), so I think something changed in this library.
   
   What updates do I need to make in my code to make this work?
   
   Currently my code is [directly loading the environment variables](https://github.com/tleyden/keynuker/blob/110c0a672b75a4ccf5331bc08f2fc3fe354ac1c1/openwhisk_status.go#L246-L268) and passing that to the `whisk.NewClient()` call.  Is that still the right way to do things?  I believe I did that as a workaround to https://github.com/apache/incubator-openwhisk-client-go/issues/23

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services