rcullito/searchbing

JSON::ParserError: 784: unexpected token at 'The authorization type you provided is not supported. Only Basic and OAuth are supported

Closed this issue · 1 comments

Repro steps:

  1. gem install 'searchbing' (it installed: searchbing-0.2.6)
  2. open 'rails console'
  3. require 'searchbing'
  4. bing_web = Bing.new('my-azure-account-key',20,'WebOnly')
  5. bing_results = bing_web.search('find some web results')

Observed behavior:
JSON::ParserError: 784: unexpected token at 'The authorization type you provided is not supported. Only Basic and OAuth are supported

Closing out this issue, was due to passing in a bad account key value that contained a space.