You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a puts req to the SDKs subscription.rb file so I can see the full request. Pasted below. Note, I'm using password authentication flow (having issues in office using the 8080 redirect for your go oauth2 example).
#<struct Faraday::Request method=:post, path="subscription", params={}, headers={"User-Agent"=>"ringcentral-sdk-ruby/2.2.1 ruby/2.4.1 x86_64-darwin16", "RC-User-Agent"=>"ringcentral-sdk-ruby/2.2.1 ruby/2.4.1 x86_64-darwin16", "SDK-User-Agent"=>"ringcentral-sdk-ruby/2.2.1 ruby/2.4.1 x86_64-darwin16", "Content-Type"=>"application/json"}, body={:eventType=>["/restapi/v1.0/account/~/extension/~/glip/posts"], :deliveryMode=>{:transportType=>"PubNub"}}, options=#<Faraday::RequestOptions (empty)>>
[2018-01-15 16:07:52 UTC] INFO: post https://platform.devtest.ringcentral.com/restapi/v1.0/subscription
[2018-01-15 16:07:52 UTC] INFO: 400
/usr/local/lib/ruby/gems/2.4.0/gems/ringcentral_sdk-2.2.1/lib/ringcentral_sdk/rest/subscription.rb:90:in `rescue in subscribe': Subscribe HTTP Request Error: undefined method `-' for nil:NilClass (RuntimeError)
from /usr/local/lib/ruby/gems/2.4.0/gems/ringcentral_sdk-2.2.1/lib/ringcentral_sdk/rest/subscription.rb:71:in `subscribe'
from /usr/local/lib/ruby/gems/2.4.0/gems/glip_sdk-0.0.5/lib/glip_sdk/rest/posts.rb:59:in `observe'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-glip-0.2.0/lib/lita/adapters/glip/connector.rb:48:in `client_connect'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-glip-0.2.0/lib/lita/adapters/glip/connector.rb:32:in `connect'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-glip-0.2.0/lib/lita/adapters/glip.rb:45:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-4.7.1/lib/lita/robot.rb:80:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-4.7.1/lib/lita.rb:80:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-4.7.1/lib/lita/cli.rb:77:in `start'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
from /usr/local/lib/ruby/gems/2.4.0/gems/lita-4.7.1/bin/lita:6:in `<top (required)>'
from /usr/local/bin/lita:22:in `load'
from /usr/local/bin/lita:22:in `<main>'
The text was updated successfully, but these errors were encountered:
Added a puts req to the SDKs subscription.rb file so I can see the full request. Pasted below. Note, I'm using password authentication flow (having issues in office using the 8080 redirect for your go oauth2 example).
The text was updated successfully, but these errors were encountered: