ibm-cloud

How do I monitor daily API transaction usage for the Alchemy API service on Bluemix?

强颜欢笑 提交于 2020-01-14 02:36:09
问题 As I use the Alchemy API service on Bluemix, I see the daily-transaction-limit-exceeded message. How can I monitor my transaction usage to determine when I am approaching the limit? 回答1: Each API call typically equals many transactions. In the JSON response, you should see a transaction count returned for every API response that you receive from the server. However, you can determine the number of daily transactions that remain using the following query: curl -i http://access.alchemyapi.com

How to get username & password for Watson Text to Speech Service?

隐身守侯 提交于 2020-01-13 14:03:35
问题 I wanted to play with the text to speech service and forked the Official Sample available at - Text to Speech Demo. The sample uses Username and password while the credentials provide only an API Key. The service(s) appear to be moving over to using API keys (in favour of username and password which is reasonable). There must be a way to provide configuration(in the create new credentials page) which would provide the username and password. I can't locate those magic parameters to pass. Any

Res.Render is not a function error in node.js

▼魔方 西西 提交于 2020-01-13 06:39:51
问题 I am getting an "res.render is not a function error" in the Windows 10 Command Prompt when I try to run my node.js code. What is causing this error and how can I get rid of it? Here is my .js file: /*eslint-env node*/ //------------------------------------------------------------------------------ // node.js starter application for Bluemix //------------------------------------------------------------------------------ // HTTP request - duas alternativas var http = require('http'); var

IBM Watson visual recognition - invalid API key

左心房为你撑大大i 提交于 2020-01-11 06:00:32
问题 I'm trying to use the visual recognition from IBM Watson using their API. Here is the POST request I am sending: https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={MY_API_KEY}&version=2016-05-20 and I specify my image in the body parameter. I always get: { "status": "ERROR", "statusInfo": "invalid-api-key" } I got my key from Bluemix 3 hours ago (they said the key should be working in 5 minutes). Any ideas? Thanks EDIT Since this morning, I have another error: {

IBM Watson Conversation & IBM Cloud Functions : User Input For Parameters

不打扰是莪最后的温柔 提交于 2020-01-10 06:10:09
问题 I have already created a function in IBM Cloud Functions , but how would I implement the parameters from user input? What I'm trying to do is For example: When a user types in "I need product " / "Buy product now" / Show me products . The product input is taken as a parameter and implements it into my Cloud Function, which displays all products that uses product as a keyword. The response text would get info from the Cloud Function return output (which is a JSON array) (res.body.items[?].name

bluemix “docker images” results in “json: cannot unmarshal string into Go value of type int”

半城伤御伤魂 提交于 2020-01-07 07:11:25
问题 I have successfully uploaded two images from the docker registry to my IBM Bluemix registry, which I can see when logging into the Bluemix UI. However, I am unable to list the images using the CLIs. Using the docker command I receive the following: krsyoung:code krsyoung$ docker images json: cannot unmarshal string into Go value of type int And with cf ic: krsyoung:code krsyoung$ cf ic images json: cannot unmarshal string into Go value of type int Invalid IBM-Containers commands or docker

bluemix “docker images” results in “json: cannot unmarshal string into Go value of type int”

寵の児 提交于 2020-01-07 07:09:10
问题 I have successfully uploaded two images from the docker registry to my IBM Bluemix registry, which I can see when logging into the Bluemix UI. However, I am unable to list the images using the CLIs. Using the docker command I receive the following: krsyoung:code krsyoung$ docker images json: cannot unmarshal string into Go value of type int And with cf ic: krsyoung:code krsyoung$ cf ic images json: cannot unmarshal string into Go value of type int Invalid IBM-Containers commands or docker

For the Bluemix Secure Gateway service, how does the data center's network need to be configured?

安稳与你 提交于 2020-01-07 06:49:10
问题 I am going to use Secure Gateway service in Bluemix and I have some questions about how I should make it work. Systems in my data center's intranet access the Internet through a proxy (with no authentication). Can Secure Gateway connect to Bluemix via a proxy? Does it connect to Bluemix via HTTPS protocol? The network admins asked me: What are the IPs (or the IP range) of Bluemix, any idea? Thank you very much. 回答1: A Secure Gateway instance runs in two parts, as shown in "Reaching enterprise

Is it possible for a spark job on bluemix to access other users spark job files?

廉价感情. 提交于 2020-01-06 23:49:35
问题 A common approach for connecting to third party systems from spark is to provide the credentials for the systems in a properties file that is passed to the spark script. However, this raises some questions about security. Is it possible for a spark job running on bluemix to access files from other users spark jobs? I'm guessing that it was a design goal that this must not be possible, but it would be good to verify this. I asked a similar question to this one, but the other question focuses

Is it possible to configure AppId in Kubernetes Ingress with both types web and api at the same time?

≡放荡痞女 提交于 2020-01-06 08:46:14
问题 So that a browser would show the login page if no authentication is provided, but the backend would accept calls with a valid bearer token header as well. Is that possible? If so, how? We have several kubernetes services in the same namespace behind an ingress and annotated the ingress with ingress.bluemix.net/appid-auth: "bindSecret=binding-appidname namespace=somenamespace requestType=api serviceName=service-a" requestType=web will work too, but requestType=api,web does not work, neither