Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Conversation

@azat
Copy link
Member

@azat azat commented Jun 30, 2022

GCS server does not handle requests with port, and simply report an
error:

    <?xml version="1.0"?>
    <?xml version='1.0' encoding='UTF-8'?>
    <Error>
        <Code>InvalidURI</Code>
        <Message>Couldn't parse the specified URI.</Message>
        <Details>Invalid URL: storage.googleapis.com:443/...</Details>
    </Error>

Removing the port fixes the issue. Note that there is port in the Host
header anyway.

Note, this is a problem only for proxy in a tunnel mode, since only it
sends such requests, other sends requests directly via HTTP methods.

Refs: #22 (cc @Jokser)
Refs: ClickHouse/ClickHouse#38069 (cc @CurtizJ )
Cc: @alesapin @kssenii

…unnel usage)

GCS server does not handle requests with port, and simply report an
error:

    <?xml version="1.0"?>
    <?xml version='1.0' encoding='UTF-8'?>
    <Error>
        <Code>InvalidURI</Code>
        <Message>Couldn't parse the specified URI.</Message>
        <Details>Invalid URL: storage.googleapis.com:443/...</Details>
    </Error>

Removing the port fixes the issue. Note that there is port in the Host
header anyway.

Note, this is a problem only for proxy in a tunnel mode, since only it
sends such requests, other sends requests directly via HTTP methods.
@azat
Copy link
Member Author

azat commented Jun 30, 2022

poco-ci / linux-gcc-cmake (pull_request) Failing after 26s — linux-gcc-cmake

@azat
Copy link
Member Author

azat commented Jul 2, 2022

Can someone take a look please?
I want to submit patch for clickhouse that will use this patch to run CI.

@azat
Copy link
Member Author

azat commented Jul 3, 2022

All ClickHouse checks passed (ClickHouse/ClickHouse#38726)

@alexey-milovidov alexey-milovidov self-assigned this Jul 4, 2022
@alexey-milovidov alexey-milovidov merged commit 727c89c into ClickHouse:clickhouse Jul 4, 2022
@azat azat deleted the proxy-fix-for-GCS branch July 4, 2022 05:45
azat added a commit to azat/ClickHouse that referenced this pull request Jul 4, 2022
GCS server does not handle requests with port, and simply report an
error:

```xml
    <?xml version="1.0"?>
    <?xml version='1.0' encoding='UTF-8'?>
    <Error>
        <Code>InvalidURI</Code>
        <Message>Couldn't parse the specified URI.</Message>
        <Details>Invalid URL: storage.googleapis.com:443/...</Details>
    </Error>
```

Removing the port fixes the issue. Note that there is port in the Host
header anyway.

Note, this is a problem only for proxy in a tunnel mode, since only it
sends such requests, other sends requests directly via HTTP methods.

Refs: ClickHouse/poco#22 (comment) (cc @Jokser)
Refs: ClickHouse/poco#63
Refs: ClickHouse#38069 (cc @CurtizJ)
Cc: @alesapin @kssenii

Signed-off-by: Azat Khuzhin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants