I'm trying to get urbanairship to work with my Ionic app using Ruby on Rails as back-end.
Followed the documentation and set up the gem: https://docs.urbanairship.com/reference/libraries/ruby/3.1.0/
In production I see that users don't get their notifications. So I've decided to check it out on development.
When I'm trying to send a notifications like in the example, I get this error:
RuntimeError: Request Timeout
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/unirest-1.1.2/lib/unirest.rb:73:in `rescue in internal_request'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/unirest-1.1.2/lib/unirest.rb:59:in `internal_request'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/unirest-1.1.2/lib/unirest.rb:48:in `request'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/unirest-1.1.2/lib/unirest.rb:100:in `post'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/urbanairship-3.1.1/lib/urbanairship/client.rb:56:in `call'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/urbanairship-3.1.1/lib/urbanairship/client.rb:56:in `send_request'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/urbanairship-3.1.1/lib/urbanairship/push/push.rb:41:in `send_push'
from (irb):10
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in `start'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in `start'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in `console'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/ubuntu/app/shared/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
The server is hosted on AWS, I don't think there supposed to be any timeouts...
Please help!
Comments
4 comments