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

uninitialized constant Faraday::Error::ConnectionFailed\nDid you mean? Faraday::ConnectionFailed","error_class":"NameError" #61

Open
Luckyvb opened this issue Aug 29, 2021 · 2 comments

Comments

@Luckyvb
Copy link

Luckyvb commented Aug 29, 2021

I, [2021-08-30T01:00:04.494472 #3150] INFO -- : start I, [2021-08-30T01:00:04.497257 #3150] INFO -- : done: 0.003 sec D, [2021-08-30T01:00:04.497562 #3150] DEBUG -- : enqueued Telegram proxy monitoring: {"queue":"default","class":"TelegramProxyMonitoringWorker","args":[]} I, [2021-08-30T01:01:11.737645 #3150] INFO -- : start D, [2021-08-30T01:01:11.738337 #3150] DEBUG -- : enqueued retry: {"class":"IssueChatMessageSenderWorker","args":[100723229,"telegram","Не найдено пользователей для выбранного проекта. Команда отменена.",{"reply_markup":"{\"remove_keyboard\":true,\"selective\":false}"}],"retry":true,"queue":"issue_chats","rate":{"name":"issue_chats_rate_limit","limit":15,"period":1},"jid":"f7743f7e445531d706fb7bd0","created_at":1630274319.7134428,"enqueued_at":1630274391.3080769,"error_message":"uninitialized constant Faraday::Error::ConnectionFailed\nDid you mean? Faraday::ConnectionFailed","error_class":"NameError","failed_at":1630274320.7470021,"retry_count":2,"retried_at":1630274392.0410595} I, [2021-08-30T01:01:12.772148 #3150] INFO -- : fail: 1.034 sec W, [2021-08-30T01:01:12.772632 #3150] WARN -- : {"context":"Job raised exception","job":{"class":"IssueChatMessageSenderWorker","args":[100723229,"telegram","Не найдено пользователей для выбранного проекта. Команда отменена.",{"reply_markup":"{\"remove_keyboard\":true,\"selective\":false}"}],"retry":true,"queue":"issue_chats","rate":{"name":"issue_chats_rate_limit","limit":15,"period":1},"jid":"f7743f7e445531d706fb7bd0","created_at":1630274319.7134428,"enqueued_at":1630274471.7361498,"error_message":"uninitialized constant Faraday::Error::ConnectionFailed\nDid you mean? Faraday::ConnectionFailed","error_class":"NameError","failed_at":1630274320.7470021,"retry_count":2,"retried_at":1630274392.0410595},"jobstr":"{\"class\":\"IssueChatMessageSenderWorker\",\"args\":[100723229,\"telegram\",\"Не найдено пользователей для выбранного проекта. Команда отменена.\",{\"reply_markup\":\"{\\\"remove_keyboard\\\":true,\\\"selective\\\":false}\"}],\"retry\":true,\"queue\":\"issue_chats\",\"rate\":{\"name\":\"issue_chats_rate_limit\",\"limit\":15,\"period\":1},\"jid\":\"f7743f7e445531d706fb7bd0\",\"created_at\":1630274319.7134428,\"enqueued_at\":1630274471.7361498,\"error_message\":\"uninitialized constant Faraday::Error::ConnectionFailed\\nDid you mean? Faraday::ConnectionFailed\",\"error_class\":\"NameError\",\"failed_at\":1630274320.7470021,\"retry_count\":2,\"retried_at\":1630274392.0410595}"} W, [2021-08-30T01:01:12.772720 #3150] WARN -- : NameError: uninitialized constant Faraday::Error::ConnectionFailed Did you mean? Faraday::ConnectionFailed W, [2021-08-30T01:01:12.772854 #3150] WARN -- : /opt/redmine/4.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:41:in rescue in call'
/opt/redmine/4.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:5:in call' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/faraday-1.4.1/lib/faraday/request/url_encoded.rb:25:in call'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/faraday-1.4.1/lib/faraday/request/multipart.rb:30:in call' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/faraday-1.4.1/lib/faraday/rack_builder.rb:154:in build_response'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/faraday-1.4.1/lib/faraday/connection.rb:492:in run_request' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/faraday-1.4.1/lib/faraday/connection.rb:279:in post'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/telegram-bot-ruby-0.15.0/lib/telegram/bot/api.rb:77:in call' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/telegram-bot-ruby-0.15.0/lib/telegram/bot/api.rb:65:in method_missing'
/opt/redmine/4.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/message_sender.rb:66:in call' /opt/redmine/4.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/message_sender.rb:45:in call'
/opt/redmine/4.1/plugins/redmine_2chat/lib/redmine2chat/platforms/telegram.rb:52:in send_message' /opt/redmine/4.1/plugins/redmine_2chat/app/workers/issue_chat_message_sender_worker.rb:11:in perform'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:192:in execute_job' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:165:in block (2 levels) in process'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/middleware/chain.rb:128:in block in invoke' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/middleware/chain.rb:133:in invoke'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:164:in block in process' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:137:in block (6 levels) in dispatch'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/job_retry.rb:109:in local' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:136:in block (5 levels) in dispatch'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/rails.rb:43:in block in call' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:87:in wrap'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/reloader.rb:73:in block in wrap' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:87:in wrap'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/reloader.rb:72:in wrap' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/rails.rb:42:in call'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:132:in block (4 levels) in dispatch' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:250:in stats'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:127:in block (3 levels) in dispatch' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/job_logger.rb:8:in call'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:126:in block (2 levels) in dispatch' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/job_retry.rb:74:in global'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:125:in block in dispatch' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/logging.rb:48:in with_context'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/logging.rb:42:in with_job_hash_context' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:124:in dispatch'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:163:in process' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:83:in process_one'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/processor.rb:71:in run' /opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/util.rb:16:in watchdog'
/opt/redmine/4.1/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.9/lib/sidekiq/util.rb:25:in block in safe_thread'

@Luckyvb
Copy link
Author

Luckyvb commented Aug 29, 2021

изображение

@Luckyvb
Copy link
Author

Luckyvb commented Aug 29, 2021

Replace all Faraday::Error to Faraday at redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb
resolve problem

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