confluent-kafka-dotnet
confluent-kafka-dotnet copied to clipboard
HTTPClient throwing forbidden error for schema registry url
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.
Can you provide more info? Any logs at the SR server side?