confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
293 stars 3.15k forks source link

Issue whie getting librdkafka from Nuget.org via V3 API #4801

Open OndrejKares opened 3 months ago

OndrejKares commented 3 months ago

Description

Getting an error while getting librdkafka through V3 API from nuget.org

2024-08-01 11:19:25,686 [http-nio-8081-exec-11229] [ERROR] (o.a.a.n.r.NuGetV3VirtualAndRemoteCommon:243) - Failed to download resource in repo: central-nuget-remote, at url: https://api.nuget.org/v3/registration5-gz-semver2/librdkafka.redist/page/1.2.0-RC1b/1.9.0-RC10.json. HTTP STATUS CODE: 404
2024-08-01 11:19:25,686 [http-nio-8081-exec-11229] [ERROR] (o.a.a.n.r.NuGetV3VirtualAndRemoteCommon:458) - Failed to parse registration page for package: librdkafka.redist
2024-08-01 11:19:26,108 [http-nio-8081-exec-11213] [ERROR] (o.a.a.n.r.NuGetV3VirtualAndRemoteCommon:243) - Failed to download resource in repo: central-nuget-remote, at url: https://api.nuget.org/v3/registration5-gz-semver2/librdkafka.redist/page/1.9.0-RC12/2.5.0.json. HTTP STATUS CODE: 404
2024-08-01 11:19:26,108 [http-nio-8081-exec-11213] [ERROR] (o.a.a.n.r.NuGetV3VirtualAndRemoteCommon:458) - Failed to parse registration page for package: librdkafka.redist

How to reproduce

I'm using Artifacotry with local nuget repository central-nuget-remote which is linked to nuget.org. I can get this json:

{
    "count": 3,
    "items": [
        {
            "count": 64,
            "lower": "0.9.3-pre-20",
            "upper": "1.1.0",
            "@id": "https://artifactory.local:443/artifactory/api/nuget/v3/central-nuget-remote/registration-semver2/librdkafka.redist/page/0.9.3-pre-20/1.1.0.json"
        },
        {
            "count": 64,
            "lower": "1.2.0-RC1b",
            "upper": "1.9.0-RC10",
            "@id": "https://artifactory.local:443/artifactory/api/nuget/v3/central-nuget-remote/registration-semver2/librdkafka.redist/page/1.2.0-RC1b/1.9.0-RC10.json"
        },
        {
            "count": 42,
            "lower": "1.9.0-RC12",
            "upper": "2.5.0",
            "@id": "https://artifactory.local:443/artifactory/api/nuget/v3/central-nuget-remote/registration-semver2/librdkafka.redist/page/1.9.0-RC12/2.5.0.json"
        }
    ],
    "@id": "https://artifactory.local:443/artifactory/api/nuget/v3/central-nuget-remote/registration-semver2/librdkafka.redist/index.json"
}

I'm able to download https://artifactory.local:443/artifactory/api/nuget/v3/central-nuget-remote/registration-semver2/librdkafka.redist/page/0.9.3-pre-20/1.1.0.json However I get an ERROR for other two:

https://api.nuget.org/v3/registration5-gz-semver2/librdkafka.redist/page/1.2.0-RC1b/1.9.0-RC10.json
https://api.nuget.org/v3/registration5-gz-semver2/librdkafka.redist/page/1.9.0-RC12/2.5.0.json

<Error>
<Code>BlobNotFound</Code>
<Message>The specified blob does not exist. RequestId:c9216b7b-601e-003b-6c05-e4f853000000 Time:2024-08-01T11:25:23.6459651Z</Message>
</Error>

Can you check Nuget repository setup?

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information:

OndrejKares commented 3 months ago

I tried to use Nuget API V2 and it worked, so there is a workaround.