ibm-cloud

MessageHub - api for creating topics?

痞子三分冷 提交于 2019-12-25 14:12:26
问题 In the bluemix web console, it is possible to create topics. However, is it possible to create topics using a REST API? I couldn't see documentation online - maybe I missed it. 回答1: @SHC no worries, it is easy to miss. Try here for a brief mention and link to the Swagger document for the topic administration API: https://console.ng.bluemix.net/docs/services/MessageHub/messagehub010.html#messagehub037 The docs are currently been restructured to improve discoverability. Feel free to come back

watson conversation API giving Gateway Error Code : ERCD04-INVLDCHR-USERID from curl

半腔热情 提交于 2019-12-25 09:14:04
问题 I am getting an invalid userid error regardless of having checked everything carefully. I am posting a very simple call with service credentials taken from the conversation service in Bluemix and workspace ID taken from the specific workspace within the conversation service. What am I missing? curl -X POST \ -u "{XXXXXXXXXXXXXXXXXXXXXXX}":"{XXXXXXXXX}" \ -H "Content-Type:application/json" \ -d "{\"input\": {\"text\": \”Hello\”}}" "https://gateway.watsonplatform.net/conversation/api/v1

IBM Watson Document Conversion not working

南楼画角 提交于 2019-12-25 08:46:46
问题 I recently implemented the Document Conversion API from IBM Watson. I always get an encoding error for converting pdf document!!! #!/usr/bin/env python #coding: utf-8 import json from watson_developer_cloud import DocumentConversionV1 from io import open document_conversion = DocumentConversionV1( username='{XXXXXXXXXXX}', password='{XXXXXXXXXXXXX}', version='2015-12-15' ) config = { 'conversion_target': 'ANSWER_UNITS', # Use a custom configuration. 'word': { 'heading': { 'fonts': [ {'level':

When deploying an app to Bluemix using the sdk-for-nodejs buildpack, it's running npm install when I don't want it to. How can I stop it?

天大地大妈咪最大 提交于 2019-12-25 08:39:23
问题 I'm using Bluemix DevOps Pipelines to deploy a Node.js app to Bluemix as a Cloud Foundry app. It is using the sdk-for-nodejs buildback (although I haven't specified that, it's detecting the package.json file). It takes a long time to stage the app. Looking at the logs, this is because it appears to be running npm install . However, I have set up my pipeline so that npm install is called in an earlier stage, and the build artifact that is to be deployed already contains the installed node

Getting stuck with Creating .p12 push certificate file for Bluemix push

元气小坏坏 提交于 2019-12-25 08:18:19
问题 With reference to this post: Devices being unregistered after push is sent, I have the same issue - my iPhone device is unregistered after sent a push notification. I tried the suggestion from that post, and I did this with my certificates: -ios_development.cer - Development profile downloaded from Apple -Certificates.p12 - APNS .p12 exported from the keychain -openssl x509 -in ios_development.cer -inform DER -out apns.pem -outform PEM -openssl pkcs12 -nocerts -in Certificates.p12 -out

Unable to get SSO working for NodeJS in BlueMix

南笙酒味 提交于 2019-12-25 07:59:38
问题 Here's the error I keep getting "CWOAU0062E: The OAuth service provider could not redirect the request because the redirect URI was not valid. Contact your system administrator to resolve the problem." var express = require('express'); // Add for SSO var cookieParser = require('cookie-parser'); var session = require('express-session'); var passport = require('passport'); var OpenIDConnectStrategy = require('passport-idaas-openidconnect').IDaaSOIDCStrategy; var redis = require('redis'); var

Bluemix Secure Gateway AS 400 DB2 Connection refused Issue

╄→尐↘猪︶ㄣ 提交于 2019-12-25 07:47:08
问题 I have configured Bluemix Secure gateway client to connect to DB2 on AS 400 using a Windows machine. I am able to run the Db2 connection successfully from the application on Windows machine where Secure gateway client is running. But when I run the same application on Bluemix with modifying the code to depict Secure Gateway client destination details, I get 'Connection Refused' error. I had gone through how to connect a bluemix app to on-premise db/as400? , which mentions about Secure gateway

Bluemix IoT NodeJS code, missing MQTT folder

三世轮回 提交于 2019-12-25 06:58:11
问题 I am new to Bluemix and IoT. Earlier I replicated Parking Lot App as shown in the document on link. that time the app worked fine. Now when i try to replicate the same app again I see the code structure is changed. the "mqtt" folder which was there previously is missing/omitted from the code. I am unable to find the callbacks which were there in files under "mqtt" folder. I checked the above mentioned doc if its modified, but it is still the old doc which is there since March. can someone

Failed to deploy a sample Javascript HTTP adapter on MFP 8 (MobileFoundation Bluemix)

限于喜欢 提交于 2019-12-25 06:48:03
问题 I am beginning my journey into the MobileFirst Platform 8 Beta, and I would like to deploy my very first sample adapter. I am using an instance of the Mobile Foundation service on Bluemix. When trying to deploy the sample adapter, I get the error stack below: ○ → mvn adapter:deploy -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building SampleAdapter 1.0-SNAPSHOT [INFO] --

Api Watson : Conversation, internal error

依然范特西╮ 提交于 2019-12-25 06:35:05
问题 I am trying to use the updateWorkspace function of the Conversation API of Watson but I always get this error : {"error":"Internal Error"} My request looks like this : curl -H "Content-Type: application/json" -X POST -u "username":"password" -d "{\"name\":\"Edubot\",\"dialog_nodes\": [{\"dialog_node\":\"bonjour\",\"conditions\":\"#Bonjour\",\"output\": {\"text\":{\"values\":[\"bonjour\"],\"selection_policy\":\"sequential\"}}}, {\"\dialog_node\":\"Aurevoir\",\"conditions\":\"#Aurevoir\",\