GRPC::InvalidArgument: invalid page token error in protected branches controller
Summary
A GRPC::InvalidArgument exception is occurring when accessing protected branches, with the error message "invalid page token: sending lines: could not find page token."
Stacktrace
GRPC::InvalidArgument: 3:invalid page token: sending lines: could not find page token.
from grpc/generic/active_call.rb:29:in `check_status'
from grpc/generic/active_call.rb:189:in `attach_status_results_and_complete_call'
from grpc/generic/active_call.rb:174:in `receive_and_check_status'
from grpc/generic/active_call.rb:344:in `each_remote_read_then_finish'
from config/initializers/enumerator_next_patch.rb:11:in `block (2 levels) in <module:EnumeratorNextPatch>'
from lib/gitlab/gitaly_client/call.rb:46:in `block (3 levels) in instrument_stream'
from lib/gitlab/gitaly_client/call.rb:61:in `recording_request'
from lib/gitlab/gitaly_client/call.rb:46:in `block (2 levels) in instrument_stream'
from lib/gitlab/gitaly_client/call.rb:45:in `loop'
from lib/gitlab/gitaly_client/call.rb:45:in `block in instrument_stream'
from lib/gitlab/gitaly_client/ref_service.rb:270:in `each'
from lib/gitlab/gitaly_client/ref_service.rb:270:in `each'
from lib/gitlab/gitaly_client/ref_service.rb:270:in `flat_map'
from lib/gitlab/gitaly_client/ref_service.rb:270:in `consume_list_refs_response'
from lib/gitlab/gitaly_client/ref_service.rb:253:in `list_refs'
from lib/gitlab/git/repository.rb:893:in `block in list_refs'
from lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'
from lib/gitlab/git/repository.rb:892:in `list_refs'
from lib/gitlab/git/finders/refs_finder.rb:22:in `execute'
from app/services/projects/refs_by_pagination_service.rb:24:in `execute'
from app/controllers/projects/protected_refs_controller.rb:36:in `show'
from app/controllers/projects/protected_branches_controller.rb:5:in `show'
from action_controller/metal/basic_implicit_render.rb:6:in `send_action'
Expected Behavior
Protected branches page should load successfully even when page_token is incorrect.
Actual Behavior
GRPC::InvalidArgument exception is thrown, preventing the page from loading.
Edited by 🤖 GitLab Bot 🤖