ruby-sdk icon indicating copy to clipboard operation
ruby-sdk copied to clipboard

Issue with Ngrok and desactivating SSL

Open ionosphere opened this issue 3 years ago • 0 comments

Hi,

I have an error on parsing an API response error.

`<TITLE>Access Denied</TITLE>

Access Denied

You don't have permission to access "http://api.eu-gb.assistant.watson.cloud.ibm.com/v2/assistants/fa41d158-9382-4da6-9db8-7c47fb92e141/sessions/e9283ba2-2cc3-450d-9688-0450c8d5856c/message?" on this server.<P> Reference #18.be3e2217.1674809815.1927c3e

'`

json-2.3.1/lib/json/common.rb:263:in parse' ibm_cloud_sdk_core/api_exception.rb:15:in initialize' ibm_cloud_sdk_core/base_service.rb:113:in new' ibm_cloud_sdk_core/base_service.rb:113:in request'

Service Status

OK

Describe the bug

When trying to access to Watson API, we have an error unmanaged by the gem

To Reproduce

Use Ngrok, lauch a console and call the message function

Expected behavior

We expect to parse correctly the message

Actual behavior

JSON::ParserError: 784: unexpected token at '<HTML><HEAD>

Screenshots

Desktop (please complete the following information):

  • OS: Linux Ubuntu 20.04.5 LTS
  • Ruby Version : 2.6.6

Additional context

ionosphere avatar Jan 27 '23 09:01 ionosphere