Skip to content

Show clear error message when CONCOURSE_EXTERNAL_URI is malformed #1668

Closed

Description

@Granjow

Feature Request

What challenge are you facing?

When submitting a local task, concourse responds with unsupported protocol scheme "".

$ fly -t iot execute -c command.yml 
executing build 1437 at http://example.com/builds/1437 
upload request failed: Put /api/v1/pipes/3e07ef59-3880-4d7f-557c-26cabc2d2cd0: unsupported protocol scheme ""
curl: (3) <url> malformed

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
exit status 2
failed

This is caused by a wrong entry in the docker-compose.yml file.

# wrong
CONCOURSE_EXTERNAL_URL: "example.com"
# correct
CONCOURSE_EXTERNAL_URL: "http://example.com"

A Modest Proposal

Provide an error message which is easier to understand and which points to CONCOURSE_EXTERNAL_URL.

Activity

  1. vito commented on Jul 9, 2018

    @vito
    Contributor

    this should be cleaned up by concourse/flag#1 which is now merged

  2. added this to the v4.0.0 milestone on Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions