You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/06 16:29:54 UTC

[GitHub] csantanapr opened a new issue #239: The weather action forecast hard codes the host value

csantanapr opened a new issue #239: The weather action forecast hard codes the host value
URL: https://github.com/apache/incubator-openwhisk-catalog/issues/239
 
 
   In the action [weather/forecast](https://github.com/apache/incubator-openwhisk-catalog/blob/master/packages/weather/forecast.js#L27)
   
   The url uses a hard coded host value of `twcservice.mybluemix.net`
   User have reported that this value is different per region like `twcservice.eu-gb.bluemix.net`
   
   We should change add `host` as a binding parameter and also update the readme
   ```
   var host = params.host || 'twcservice.mybluemix.net';
   var url = `https://${host}/api/weather/v1/geocode/${lat}/${lon}`;
   ```
 
----------------------------------------------------------------
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