-
Notifications
You must be signed in to change notification settings - Fork 118
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
Bot doesn't work with credentials #74
Comments
Is config correctly fetched with |
Sure. All works fine with |
You mean bot works fine in console? |
Right.
But poller doesn't work
|
Seems like this is related: rails/rails#30717 I'll check carefully later. |
@printercu Thank you, I really appreciate it! |
I managed to run it from the console only like this: |
It's still not clear for me, how credentials should be used with multiple environments. There is long discussion, and still no comments on this from rails core team: rails/rails#30067. For now here is workaround from rails/rails#30717:
Other approach is to manually configure I have no ideas, how this should be properly handled in gem. Will wait for response from rails team with their vision. Suggestions are welcome. |
first u need delet old files.
|
It works with several latest rails versions so I'll close this issue. |
I think that the cause of the problem is the absence of the routes configuration in routes.rb file. Adding this code on routes solves problems: Rails.application.routes.draw do
telegram_webhook TelegramController
# ....
end |
I added in credentials:
but at start
telegram:bot:poller
I get an errorPoller not found for :default
The token is exactly correct and works on another version of rails with
secrets.yml
Help, please, in what format should I setup the yaml configuration?
Tracelog:
Ruby: 2.5.0
Rails: 5.2.0
The text was updated successfully, but these errors were encountered: