Watson Dialog service on BlueMix: Forwarding error -
i have created instance watson dialog service on bluemix. i'm authenticating dialog api through mobilefirst adapter using basic authentication specified in ibm watson dialog api reference. i'm providing username , password provided in service credentials service instance in bluemix.
when call adapter response:
{ "code": 500, "issuccessful": true, "message": "forwarding error", "responseheaders": { "connection": "keep-alive", "content-type": "application\/json", "date": "tue, 12 jul 2016 13:41:04 gmt", "server": "-", "set-cookie": "watson-dpat=zrbng044chnee09pm0uoakxqvby4fzhxwj6%2bb4mweykg56h873g%2f0a1jktbh8zwk7njjgytkx1saekclhk4cozhad0pwuorrrdwkixhauh03ueneqydwh6n0wbivxnwooaaoxumaqtdxfw%2bmhtwngxyze47tzyk7idsvsv%2f0bhloaf6gs8yewaamx7b7tfqchtfoq3%2fif7tbktyfj9l8tuiqrwzylljcwv5typn93j1km5jl%2fvc4k3w7zvtvygyeurp9bb1slap1prgippn97w%2f%2f3i%2fkkq3vs0vvo5bzxhvbf7ss%2fjg5mwq8wbtymqjizxqf1zkuz5fvlljcyx%2bvfejg28j429rdovpiihon%2fmmnv9eyeaubzq929beb32dx90b1chnwiymfwe9cv7onbaucolpzro6rlkftfeonrgsp0a6wdn3klabwj9a4eb%2fjffhfgro7n3iskxjci5jkhgy0wogdpg4kqmbq%2f%2f3b2a0gcp6hryn%2bjl%2bfgnyg8wcb7xlmcrn77xwp8hqcej6tchi8yrpheo5cvjolp0e5qohaywmtxdsle4tv34fnpyssvxvny9f9salsf627ymoocg2r03tetgsr44f9mlkfgeydbfptavbzidvdlzajmqcigmf9j%2b92nxgxbvypfnu4gikb5uee0duf8grcmqsj3m%2bhbfn4uzepyh4flxfjv5evqom5ajewttjcnrsxzfixvddvqndpv3c3xwn%2f5cenc7uktlkfuwsnusjobovyqxlumujidt9odhwmn8vam9qizy9mo4zrekdbnzxrlwtcphlezhtcng6x24e46c29w8sgk97ahk4h3hy%3d; path=\/dialog\/api; secure; httponly", "transfer-encoding": "chunked", "x-backside-transport": "fail fail", "x-client-ip": "195.212.29.160", "x-dp-watson-tran-id": "gateway-dp02-2901289c-0679-40df-bdc0-db2d7ccd8847", "x-error-cause": "zuul error: command_exception", "x-global-transaction-id": "10770268" }, "responsetime": 1210, "statuscode": 500, "statusreason": "internal server error", "totaltime": 1372
}
also, when trying authenticate service via command line using:
curl -u "username":"password" "https://gateway.watsonplatform.net/dialog/api/v1"
i response:
{"code": 500, "message": "forwarding error"}
what happening service?
it happening me other watson service: languaje translator. (i haven't checked yet others)
the problem https://gateway.watsonplatform.net/dialog/api/v1 not valid endpoint. in case forwarding error
kind of 404.
you can use watson dialog api specification see valid endpoints.
for example, list of dialogs get
request /v1/dialogs
:
curl -u "username":"password" \ "https://gateway.watsonplatform.net/dialog/api/v1/dialogs"
the output like:
{ "dialogs": [ { "name": "pizza_test_9", "dialog_id": "94ce77db-1d15-4438-be6f-c96be8d883a6" } ], "language_packs": [ { "name": "en-us-legacy", "dialog_id": "en-us-legacy" }, { "name": "en-us", "dialog_id": "en-us" } ] }
make sure replace username
, password
service credentials.
Comments
Post a Comment