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

Asked

Viewed 230 times

1

I am trying to register a Gitlab Runner, but when I run the registry command specified in the API, error occurs. The command I try to run is like the one 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 obtained is:

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

References: https://docs.gitlab.com/ee/api/runners.html

1 answer

0


The problem is that the Gitlab API was set to disable the use of the verb POST. That’s why the get calls worked but this particular call wasn’t working. I found the problem as follows:

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

The returned verbs were:

allow: OPTIONS, GET, HEAD

Browser other questions tagged

You are not signed in. Login or sign up in order to post.