Drone

Missing "http" in DRONE_RPC_SERVER leads to an error

I am using the following command to run the agent on the same machine as the server:

docker run
–volume=/var/run/docker.sock:/var/run/docker.sock
–env=DRONE_RPC_SERVER=ci.test.com:3310
–env=DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
–env=DRONE_RUNNER_CAPACITY=2
–env=DRONE_RUNNER_NAME=test
–env=DRONE_LOGS_TRACE=true
–restart=always
–detach=true
–name=drone_agent
drone/agent:1

as long as “http” is missed in DRONE_RPC_SERVER, I was receiving an error as follow:

2019/07/10 11:33:56 [ERR] POST ci.test.com://localhost:8080/rpc/v1/request request failed: Post ci_test_com://localhost:8080/rpc/v1/request: unsupported protocol scheme “ci_test_com”.

However, running the server with missing “http” in DRONE_SERVER_HOST works successfully.

Do I need to use “http” or it is a bug?

For a list of configuration parameters and sample values see https://docs.drone.io/administration/agents/linux-amd64/