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

Fix errors with new record_unknown_job_error endpoint #197

Merged

Conversation

deivid-rodriguez
Copy link
Contributor

I'm getting the following errors when running the CLI:

(... omitted ...)

  proxy | 2023/11/16 11:16:11 [012] POST http://host.docker.internal:49797/update_jobs/cli/record_update_job_unknown_error
    cli | 2023/11/16 11:16:11 unexpected output type: record_update_job_unknown_error
  proxy | 2023/11/16 11:16:11 [012] 501 http://host.docker.internal:49797/update_jobs/cli/record_update_job_unknown_error
updater | 2023/11/16 11:16:11 ERROR 
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/api_client.rb:116:in `record_update_job_unknown_error'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/service.rb:68:in `record_update_job_unknown_error'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/call_validation.rb:256:in `bind_call'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/call_validation.rb:256:in `validate_call'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11094/lib/types/private/methods/_methods.rb:275:in `block in _on_method_added'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/error_handler.rb:233:in `log_unknown_error_with_backtrace'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/error_handler.rb:55:in `handle_dependency_error'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:69:in `rescue in check_and_create_pr_with_error_handling'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:59:in `check_and_create_pr_with_error_handling'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:35:in `block in perform'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:35:in `each'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:35:in `perform'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater.rb:64:in `run'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/update_files_command.rb:39:in `perform_job'
updater | 2023/11/16 11:16:11 ERROR /home/dependabot/dependabot-updater/lib/dependabot/base_command.rb:53:in `run'
updater | 2023/11/16 11:16:11 ERROR bin/update_files.rb:24:in `<main>'
  proxy | 2023/11/16 11:16:11 [013] POST http://host.docker.internal:49797/update_jobs/cli/record_update_job_error
{"data":{"error-type":"unknown_error","error-details":{"message":""}},"type":"record_update_job_error"}
  proxy | 2023/11/16 11:16:11 [013] 200 http://host.docker.internal:49797/update_jobs/cli/record_update_job_error
  proxy | 2023/11/16 11:16:11 [014] POST http://host.docker.internal:49797/update_jobs/cli/record_update_job_unknown_error
    cli | 2023/11/16 11:16:11 unexpected output type: record_update_job_unknown_error
  proxy | 2023/11/16 11:16:11 [014] 501 http://host.docker.internal:49797/update_jobs/cli/record_update_job_unknown_error

(... omitted ...)

These changes seem to fix it.

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner November 16, 2023 11:27
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/fix-record-update-job-unknown-errors branch from 8231c5e to 20755d0 Compare November 16, 2023 12:41
@jakecoffman jakecoffman merged commit 2e92e05 into main Nov 16, 2023
49 checks passed
@jakecoffman jakecoffman deleted the deivid-rodriguez/fix-record-update-job-unknown-errors branch November 16, 2023 13:50
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

Successfully merging this pull request may close these issues.

2 participants