Prerequsities
- [ x] I'm on the latest version of the plugin
- [x ] I've installed the required dependencies
- [x ] I've run
:h gitlab.nvim.troubleshooting and followed the steps there
Setup Configuration and Environment
I’m using this setup:
config = function()
require("gitlab").setup({
debug = {
request = true, -- Requests to/from Go server
response = true,
gitlab_request = true, -- Requests to/from Gitlab
gitlab_response = true,
},
connection_settings = {
proxy = "http://user:password@myproxy:myport",
},
auth_provider = function()
return "secret", "https://gitlab.url", nil
end,
})
end,
Bug Description
I’m getting a “cannot parse JSON response and seeing that it’s a HTML response from tinyproxy saying the website cannot be reached”.
I see this in gitlab.nvim debug log:
-- REQUEST TO GITLAB --
GET /api/v4/projects/REDACTED
Host: REDACTED
Accept: application/json
Private-Token: REDACTED
User-Agent: go-gitlab
-- RESPONSE FROM GITLAB --
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: max-age=0, private, must-revalidate
Connection: keep-alive
Content-Type: application/json
Date: Wed, 25 Mar 2026 20:41:33 GMT
Etag: W/"94e0821b3181f6d74bca775d37662f08"
Nel: {"max_age": 0}
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx
Strict-Transport-Security: max-age=63072000
Vary: Accept-Encoding
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Gitlab-Meta: {"correlation_id":"01KMKBPA91EF60G9JPXDXGYX3S","version":"1"}
X-Request-Id: 01KMKBPA91EF60G9JPXDXGYX3S
X-Runtime: 0.105382
e8f
{"id":10,"description":....}}}
0
-- REQUEST TO GO SERVER --
GET /ping HTTP/1.1
Host: localhost:44353
Accept-Encoding: gzip
Private-Token: REDACTED
User-Agent: Go-http-client/1.1
-- RESPONSE FROM GO SERVER --
HTTP/0.0 200 OK
Content-Length: 5
Content-Type: application/json
pong
(the initial response from gitlab is much larger and looks like well-formed JSON containing good response)
I also see this in tinyproxy log:
CONNECT Mar 25 20:41:29.152 [248]: Connect (file descriptor 5): 10.0.0.163
CONNECT Mar 25 20:41:29.165 [248]: Request (file descriptor 5): CONNECT gitlab.url:22 HTTP/1.0
CONNECT Mar 25 20:41:29.166 [248]: Connect (file descriptor 5): 10.0.0.163
CONNECT Mar 25 20:41:29.167 [248]: Request (file descriptor 5): CONNECT gitlab.url:22 HTTP/1.0
INFO Mar 25 20:41:29.169 [248]: No upstream proxy for gitlab.url
INFO Mar 25 20:41:29.170 [248]: opensock: opening connection to gitlab.url:22
INFO Mar 25 20:41:30.060 [248]: opensock: getaddrinfo returned for gitlab.url:22
CONNECT Mar 25 20:41:30.198 [248]: Established connection to host "gitlab.url" using file descriptor 6.
INFO Mar 25 20:41:30.201 [248]: Not sending client headers to remote machine
INFO Mar 25 20:41:32.209 [248]: Closed connection between local client (fd:5) and remote client (fd:6)
CONNECT Mar 25 20:41:32.216 [248]: Connect (file descriptor 5): 10.0.0.163
CONNECT Mar 25 20:41:32.217 [248]: Request (file descriptor 5): CONNECT gitlab.url:443 HTTP/1.1
INFO Mar 25 20:41:32.218 [248]: No upstream proxy for gitlab.url
INFO Mar 25 20:41:32.220 [248]: opensock: opening connection to gitlab.url:443
INFO Mar 25 20:41:32.720 [248]: opensock: getaddrinfo returned for gitlab.url:443
CONNECT Mar 25 20:41:32.858 [248]: Established connection to host "gitlab.url" using file descriptor 6.
INFO Mar 25 20:41:32.861 [248]: Not sending client headers to remote machine
CONNECT Mar 25 20:41:33.402 [248]: Connect (file descriptor 7): 10.0.0.163
CONNECT Mar 25 20:41:33.405 [248]: Request (file descriptor 7): GET http://localhost:44353/version HTTP/1.1
INFO Mar 25 20:41:33.406 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.407 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.409 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.410 [248]: opensock: Could not establish a connection to localhost:44353
CONNECT Mar 25 20:41:33.416 [248]: Connect (file descriptor 7): 10.0.0.163
CONNECT Mar 25 20:41:33.417 [248]: Connect (file descriptor 8): 10.0.0.163
CONNECT Mar 25 20:41:33.417 [248]: Request (file descriptor 7): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.419 [248]: Request (file descriptor 8): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.419 [248]: Connect (file descriptor 10): 10.0.0.163
INFO Mar 25 20:41:33.420 [248]: No upstream proxy for localhost
CONNECT Mar 25 20:41:33.417 [248]: Connect (file descriptor 9): 10.0.0.163
INFO Mar 25 20:41:33.421 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.425 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.422 [248]: Request (file descriptor 10): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.428 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.424 [248]: Connect (file descriptor 16): 10.0.0.163
CONNECT Mar 25 20:41:33.420 [248]: Connect (file descriptor 11): 10.0.0.163
CONNECT Mar 25 20:41:33.421 [248]: Connect (file descriptor 13): 10.0.0.163
CONNECT Mar 25 20:41:33.433 [248]: Request (file descriptor 13): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.427 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.421 [248]: Connect (file descriptor 12): 10.0.0.163
INFO Mar 25 20:41:33.435 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.436 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.429 [248]: Connect (file descriptor 21): 10.0.0.163
CONNECT Mar 25 20:41:33.424 [248]: Request (file descriptor 9): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.430 [248]: Connect (file descriptor 22): 10.0.0.163
CONNECT Mar 25 20:41:33.431 [248]: Request (file descriptor 16): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.432 [248]: Request (file descriptor 11): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.441 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.442 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.434 [248]: Connect (file descriptor 26): 10.0.0.163
CONNECT Mar 25 20:41:33.427 [248]: Connect (file descriptor 19): 10.0.0.163
INFO Mar 25 20:41:33.428 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.448 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.436 [248]: Connect (file descriptor 28): 10.0.0.163
CONNECT Mar 25 20:41:33.451 [248]: Request (file descriptor 28): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.430 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.431 [248]: Connect (file descriptor 23): 10.0.0.163
CONNECT Mar 25 20:41:33.440 [248]: Request (file descriptor 22): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.422 [248]: Connect (file descriptor 14): 10.0.0.163
CONNECT Mar 25 20:41:33.432 [248]: Connect (file descriptor 24): 10.0.0.163
CONNECT Mar 25 20:41:33.457 [248]: Request (file descriptor 14): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.458 [248]: Request (file descriptor 12): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.459 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.461 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.428 [248]: Connect (file descriptor 20): 10.0.0.163
INFO Mar 25 20:41:33.449 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.437 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.438 [248]: No upstream proxy for localhost
CONNECT Mar 25 20:41:33.438 [248]: Connect (file descriptor 30): 10.0.0.163
CONNECT Mar 25 20:41:33.454 [248]: Request (file descriptor 23): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.456 [248]: No upstream proxy for localhost
CONNECT Mar 25 20:41:33.470 [248]: Request (file descriptor 24): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.458 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.473 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.459 [248]: opensock: Could not establish a connection to localhost:44353
CONNECT Mar 25 20:41:33.423 [248]: Connect (file descriptor 15): 10.0.0.163
CONNECT Mar 25 20:41:33.437 [248]: Connect (file descriptor 29): 10.0.0.163
CONNECT Mar 25 20:41:33.464 [248]: Request (file descriptor 20): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.452 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.479 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.453 [248]: opensock: Could not establish a connection to localhost:44353
CONNECT Mar 25 20:41:33.425 [248]: Connect (file descriptor 17): 10.0.0.163
CONNECT Mar 25 20:41:33.483 [248]: Request (file descriptor 17): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.433 [248]: Connect (file descriptor 25): 10.0.0.163
INFO Mar 25 20:41:33.444 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.486 [248]: Request (file descriptor 25): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.435 [248]: Connect (file descriptor 27): 10.0.0.163
CONNECT Mar 25 20:41:33.489 [248]: Request (file descriptor 27): POST http://localhost:44353/shutdown HTTP/1.1
CONNECT Mar 25 20:41:33.451 [248]: Request (file descriptor 21): POST http://localhost:44353/shutdown HTTP/1.1
ERROR Mar 25 20:41:33.465 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.491 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.493 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.480 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.469 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.495 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.485 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.498 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.447 [248]: Request (file descriptor 19): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.474 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.463 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.477 [248]: Request (file descriptor 29): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.478 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.504 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.468 [248]: Request (file descriptor 30): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.483 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.470 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.510 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.511 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.488 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.514 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.490 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.516 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.517 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.519 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.520 [248]: opensock: opening connection to localhost:44353
CONNECT Mar 25 20:41:33.426 [248]: Connect (file descriptor 18): 10.0.0.163
INFO Mar 25 20:41:33.472 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.524 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.499 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.489 [248]: Request (file descriptor 15): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.515 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.503 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.531 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.505 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.494 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.509 [248]: opensock: getaddrinfo returned for localhost:44353
CONNECT Mar 25 20:41:33.522 [248]: Request (file descriptor 18): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.511 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.500 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.540 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.527 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.528 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.542 [248]: opensock: opening connection to localhost:44353
INFO Mar 25 20:41:33.517 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.519 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.507 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.521 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.496 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.537 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.551 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.515 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.501 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.530 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.532 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.533 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.535 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.536 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.549 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.538 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.552 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.467 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.544 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.557 [248]: opensock: Could not establish a connection to localhost:44353
CONNECT Mar 25 20:41:33.446 [248]: Request (file descriptor 26): POST http://localhost:44353/shutdown HTTP/1.1
INFO Mar 25 20:41:33.526 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.570 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.556 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.548 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.574 [248]: No upstream proxy for localhost
INFO Mar 25 20:41:33.575 [248]: opensock: opening connection to localhost:44353
ERROR Mar 25 20:41:33.568 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.570 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.546 [248]: opensock: Could not establish a connection to localhost:44353
INFO Mar 25 20:41:33.578 [248]: opensock: getaddrinfo returned for localhost:44353
INFO Mar 25 20:41:33.564 [248]: opensock: getaddrinfo returned for localhost:44353
ERROR Mar 25 20:41:33.581 [248]: opensock: Could not establish a connection to localhost:44353
ERROR Mar 25 20:41:33.583 [248]: opensock: Could not establish a connection to localhost:44353
Note the port number 44353 is the same in gitlab.nvim log and in tinyproxy. I think that it should point to gitlab url instead.
Reproduction Steps
- Check out the feature branch
- Open Neovim
- ...
Screenshots
If applicable, add screenshots to help explain your problem.
Prerequsities
:h gitlab.nvim.troubleshootingand followed the steps thereSetup Configuration and Environment
I’m using this setup:
Bug Description
I’m getting a “cannot parse JSON response and seeing that it’s a HTML response from tinyproxy saying the website cannot be reached”.
I see this in gitlab.nvim debug log:
(the initial response from gitlab is much larger and looks like well-formed JSON containing good response)
I also see this in tinyproxy log:
Note the port number 44353 is the same in gitlab.nvim log and in tinyproxy. I think that it should point to gitlab url instead.
Reproduction Steps
Screenshots
If applicable, add screenshots to help explain your problem.