atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.36k stars 222 forks source link

bot complains about URI #176

Closed EchoUrandom404 closed 1 year ago

EchoUrandom404 commented 6 years ago

Hello, I decided to move my bot from my main Fedora computer to a CentOS server. Upon starting the bot, I now receive the following error that has never occurred before. I tried to look into this online but I'm still not sure what is happening. Any help is appreciated. :)

/usr/share/ruby/uri/common.rb:176:in `split': bad URI(is not URI?): /bot[MYTOKEN] (URI::InvalidURIError)
/getUpdates
        from /usr/share/ruby/uri/common.rb:211:in `parse'
        from /usr/share/ruby/uri/common.rb:747:in `parse'
        from /usr/share/ruby/uri/common.rb:996:in `URI'
        from /usr/local/share/gems/gems/faraday-0.14.0/lib/faraday/utils.rb:275:in `call'
        from /usr/local/share/gems/gems/faraday-0.14.0/lib/faraday/utils.rb:275:in `URI'
        from /usr/local/share/gems/gems/faraday-0.14.0/lib/faraday/connection.rb:477:in `proxy_for_request'
        from /usr/local/share/gems/gems/faraday-0.14.0/lib/faraday/connection.rb:377:in `run_request'
        from /usr/local/share/gems/gems/faraday-0.14.0/lib/faraday/connection.rb:175:in `post'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/api.rb:72:in `call'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/api.rb:60:in `method_missing'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/client.rb:30:in `fetch_updates'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/client.rb:25:in `listen'
        from ./bot:9:in `block in <main>'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/client.rb:18:in `run'
        from /usr/local/share/gems/gems/telegram-bot-ruby-0.8.6.1/lib/telegram/bot/client.rb:8:in `run'
        from ./bot:8:in `<main>'
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.