curl: (92) HTTP / 2 stream 1 was not closed cleanly: REFUSED_STREAM (err 7)

1

I'm trying to register a Gitlab runner, but when I run the specified log command in the API, an error occurs. The command I try to run is as described in the API:

curl --request POST "https://gitlab.example.com/api/v4/runners" --form "token=ipzXrMhuyyJPifUt6ANz" --form "description=test-1-20150125-test" --form "tag_list=ruby,mysql,tag1,tag2"

The error you get is:

curl: (92) HTTP/2 stream 1 was not closed cleanly: REFUSED_STREAM (err 7)

References: link

    
asked by anonymous 25.06.2018 / 16:00

1 answer

0

The problem is that the Gitlab API was configured to disable the use of the POST verb. So the get calls worked but that particular call was not working. I discovered the problem as follows:

curl -i -X OPTIONS <url> --form token=<o token>

The verbs returned were:

allow: OPTIONS, GET, HEAD
    
04.10.2018 / 16:38