20230111 Buzzcord朝7時第1位お知らせ投稿失敗ログ
code:baash
Jan 10 14:00:15 buzzcord-fjord-jp heroku/scheduler.4789 Starting process with command bin/rails ranks:post_buzzcord
Jan 10 14:00:15 buzzcord-fjord-jp app/api Starting process with command bin/rails ranks:post_buzzcord by user scheduler@addons.heroku.com
Jan 10 14:00:15 buzzcord-fjord-jp heroku/scheduler.4789 State changed from starting to up
Jan 10 14:00:23 buzzcord-fjord-jp heroku/scheduler.4789 State changed from up to complete
Jan 10 14:00:23 buzzcord-fjord-jp heroku/scheduler.4789 Process exited with status 1
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 - embed.image.url: Scheme "" is not supported. Scheme must be one of ('http', 'https').
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 rails aborted!
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 Discordrb::Errors::InvalidFormBody: Invalid Form Body
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api.rb:124:in `rescue in request'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api.rb:113:in `request'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api/channel.rb:90:in `create_message'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/app/models/discord_api_client.rb:27:in `create_post'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/app/models/post_buzzcord.rb:5:in `post'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/lib/tasks/ranks/create_ranking.rake:12:in `block (2 levels) in <main>'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/command.rb:50:in `invoke'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands.rb:18:in `<main>'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 Caused by:
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 RestClient::BadRequest: 400 Bad Request
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in `exception_with_response'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in `return!'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in `process_result'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in `block in transmit'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/net/http.rb:966:in `start'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in `transmit'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rest-client-2.1.0/lib/restclient.rb:70:in `post'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api.rb:81:in `raw_request'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api.rb:112:in `request'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/bundler/gems/discordrb-a3d30b57471e/lib/discordrb/api/channel.rb:90:in `create_message'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/app/models/discord_api_client.rb:27:in `create_post'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/app/models/post_buzzcord.rb:5:in `post'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/lib/tasks/ranks/create_ranking.rake:12:in `block (2 levels) in <main>'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/command.rb:50:in `invoke'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.6/lib/rails/commands.rb:18:in `<main>'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 Tasks: TOP => ranks:post_buzzcord
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 (See full trace by running task with --trace)
エラーメッセージ該当部分
code:bash
Jan 10 14:00:23 buzzcord-fjord-jp app/scheduler.4789 - embed.image.url: Scheme "" is not supported. Scheme must be one of ('http', 'https').
第1位の投稿に添付画像が1つもない場合、embed message作成時には''を渡しているが、nilを返すように変更する
Issue
PR