companionstudio / instagram-token-agent

A service to keep your Instagram Basic Display API token fresh.
MIT License
133 stars 70 forks source link

Run scripts & scale dynos error's #11

Closed oemilio16 closed 4 years ago

oemilio16 commented 4 years ago

Describe the bug On the process to deploy heroku app, it shows me this error:

Rails backports are deprecated. DEPRECATION WARNING: SettingActiveRecord::Base.configurationswith[]=is deprecated. UseActiveRecord::Base.configurations=directly to set the configurations instead. (called from <top (required)> at /app/app.rb:5) DEPRECATION WARNING: SettingActiveRecord::Base.configurationswith[]=is deprecated. UseActiveRecord::Base.configurations=directly to set the configurations instead. (called from <class:App> at /app/app.rb:10) rake aborted! TypeError: can't convert nil into an exact number /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:in+' /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:in plus_with_duration' /app/lib/instagram_token_agent/client.rb:18:inrefresh' lib/tasks/setup.rake:19:in block in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in<top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:in load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:inkernel_load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:28:in run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:465:inexec' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:ininvoke_command' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:27:indispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:18:instart' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:30:in block in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/friendly_errors.rb:124:inwith_friendly_errors' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:22:in <top (required)>' /app/vendor/bundle/bin/bundle:104:inload' /app/vendor/bundle/bin/bundle:104:in <main>' Tasks: TOP => setup (See full trace by running task with --trace)

oemilio16 commented 4 years ago

After 4 times the deploy was done.