confluent-kafka-dotnet icon indicating copy to clipboard operation
confluent-kafka-dotnet copied to clipboard

HTTPClient throwing forbidden error for schema registry url

Open Alpesh1984909090 opened this issue 2 years ago • 1 comments

I'm trying to push message with .net 6 client but getting forbidden error for schema registry url. I'm able to access the url in postman but not accessible with .net application. I'm passing config for basic auth.

var schemaRegistryConfig = new SchemaRegistryConfig { Url = schemaRegistryUrl, BasicAuthCredentialsSource = AuthCredentialsSource.UserInfo, BasicAuthUserInfo = "username:password",

            };

Description

How to reproduce

Checklist

Please provide the following information:

  • [ ] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • [ ] Confluent.Kafka nuget version.
  • [ ] Apache Kafka version.
  • [ ] Client configuration.
  • [ ] Operating system.
  • [ ] Provide logs (with "debug" : "..." as necessary in configuration).
  • [ ] Provide broker log excerpts.
  • [ ] Critical issue.

Alpesh1984909090 avatar Mar 27 '23 11:03 Alpesh1984909090

Can you provide more info? Any logs at the SR server side?

anchitj avatar Feb 20 '24 13:02 anchitj