Skip to content

Conversation

@harrisoncramer
Copy link
Owner

This MR changes the configuration to the HTTP client so that it doesn't retry failed attempts. This behavior was causing problems when Gitlab fails with a 500 status code, but actually publishes something.

@harrisoncramer harrisoncramer changed the base branch from main to develop December 26, 2024 19:39
@harrisoncramer harrisoncramer marked this pull request as ready for review December 26, 2024 19:39
@harrisoncramer
Copy link
Owner Author

@jakubbortlik I think this will prevent posting multiple notes/comments, this HTTP client has retry logic that I believe is being triggered by general HTTP errors from Gitlab: https://github.com/hashicorp/go-retryablehttp

@jakubbortlik
Copy link
Collaborator

Nice! I haven't really tried to find a way to reproduce the issue, but I just hope it will not reappear after this fix. Thanks!

@harrisoncramer harrisoncramer merged commit 3b83880 into develop Dec 26, 2024
6 checks passed
harrisoncramer added a commit that referenced this pull request Jan 18, 2025
Miscellaneous bug fixes and improvements.

docs: various improvements (#445)
fix: don't jump to file from reviewer if it doesn't exist (#452)
fix: force linewise motion in suggestion keybinding (#454)
fix: prevent error after plenary job update (#456)
fix: fix JSON on Windows (#458)
fix: remove retry logic (#449)
fix: check whether comment can be created (#434)
jakubbortlik pushed a commit to jakubbortlik/gitlab.nvim that referenced this pull request Jan 27, 2025
Miscellaneous bug fixes and improvements.

docs: various improvements (harrisoncramer#445)
fix: don't jump to file from reviewer if it doesn't exist (harrisoncramer#452)
fix: force linewise motion in suggestion keybinding (harrisoncramer#454)
fix: prevent error after plenary job update (harrisoncramer#456)
fix: fix JSON on Windows (harrisoncramer#458)
fix: remove retry logic (harrisoncramer#449)
fix: check whether comment can be created (harrisoncramer#434)
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.

3 participants