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
travispearl commented
Repro steps:
- gem install 'searchbing' (it installed: searchbing-0.2.6)
- open 'rails console'
- require 'searchbing'
- bing_web = Bing.new('my-azure-account-key',20,'WebOnly')
- 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
travispearl commented
Closing out this issue, was due to passing in a bad account key value that contained a space.