Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PubNub subscription failure #5

Open
Brutalbeard opened this issue Jan 15, 2018 · 0 comments
Open

PubNub subscription failure #5

Brutalbeard opened this issue Jan 15, 2018 · 0 comments

Comments

@Brutalbeard
Copy link

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>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant