{"action":"opened","issue":{"url":"https://api.github.com/repos/exactonline/exactonline-api-ruby-client/issues/39","repository_url":"https://api.github.com/repos/exactonline/exactonline-api-ruby-client","labels_url":"https://api.github.com/repos/exactonline/exactonline-api-ruby-client/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/exactonline/exactonline-api-ruby-client/issues/39/comments","events_url":"https://api.github.com/repos/exactonline/exactonline-api-ruby-client/issues/39/events","html_url":"https://github.com/exactonline/exactonline-api-ruby-client/issues/39","id":183223345,"number":39,"title":"Bad Request when using `Elmas.authorize`","user":{"login":"marckohlbrugge","id":93276,"avatar_url":"https://avatars.githubusercontent.com/u/93276?v=3","gravatar_id":"","url":"https://api.github.com/users/marckohlbrugge","html_url":"https://github.com/marckohlbrugge","followers_url":"https://api.github.com/users/marckohlbrugge/followers","following_url":"https://api.github.com/users/marckohlbrugge/following{/other_user}","gists_url":"https://api.github.com/users/marckohlbrugge/gists{/gist_id}","starred_url":"https://api.github.com/users/marckohlbrugge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marckohlbrugge/subscriptions","organizations_url":"https://api.github.com/users/marckohlbrugge/orgs","repos_url":"https://api.github.com/users/marckohlbrugge/repos","events_url":"https://api.github.com/users/marckohlbrugge/events{/privacy}","received_events_url":"https://api.github.com/users/marckohlbrugge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T17:58:36Z","updated_at":"2016-10-15T17:58:36Z","closed_at":null,"body":"I'm trying to authorize Elmas using this method described in the Readme:\r\n\r\n```ruby\r\nrequire \"elmas\"\r\n\r\nElmas.configure do |config|\r\n  config.access_token = Elmas.authorize(ENV['EXACT_USER_NAME'], ENV['EXACT_PASSWORD']).access_token\r\nend\r\n```\r\n\r\nWhich results in the following error message:\r\n\r\n```\r\nJSON::ParserError: 784: unexpected token at 'Bad Request'\r\n\tfrom /Users/marc/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse'\r\n\tfrom /Users/marc/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/oauth.rb:110:in `body'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/response.rb:22:in `parsed'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/response.rb:42:in `error_message'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/response.rb:46:in `log_error'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/response.rb:65:in `raise_and_log_error'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/response.rb:10:in `initialize'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/oauth.rb:18:in `new'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas/oauth.rb:18:in `authorize'\r\n\tfrom /Users/marc/.rvm/gems/ruby-2.3.0/gems/elmas-2.3.1/lib/elmas.rb:57:in `method_missing'\r\n\tfrom (irb):43\r\n\tfrom /Users/marc/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'\r\n```\r\n\r\nThe error log doesn't provide any additional information.\r\n\r\nAny recommendations on debugging this? Is there a way to see the actual requests Elmas made?\r\n\r\nI double checked ENV variables and also tried entering the login information directly, but I keep running into this same problem. "}}
{"actor":{"display_login":"marckohlbrugge"}}