Open NeilBumford opened 2 years ago
@NeilBumford can you validate the credentials with something like the following (substitute your values):
curl -u <SR API KEY>:<SR API SECRET> https://<SR ENDPOINT>/subjects
Hi,
It came back with:
[]
I guess that's a fail, then?
[]
should be a pass and indicates no subjects are defined.
A fail would have resulted in some kind of more obvious auth error, e.g.
{"error_code":401,"message":"Unauthorized"}
OK, so am I missing something?
@NeilBumford if this is for Springboot, the input configuration file should be of the syntax shown here: https://github.com/confluentinc/examples/blob/7.1.0-post/clients/docs/includes/configs/cloud/springboot-sr.config
OK. Are you referring to java.config when you say "input configuration file" or should I have a springboot-sr.config file somewhere? I'm not very experienced with spring boot.
Whatever the file is that is input to the application, and yes, in your case it looks like you've named it java.config
Just following the docs :)
Hmmm. Same error.
There's this line above the error text:
curl: no URL specified!
Don't know if this is relevant but this property in java_producer_consumer.delta isn't being written to:
schema.registry.basic.auth.user.info
Hi,
I'm getting the above error when trying to run the spring boot example.
I believe I have the Schema Registry set up and I've generated a schema registry key.
Here's my java.config:
`bootstrap.servers=pkc-l6wr6.europe-west2.gcp.confluent.cloud:9092 security.protocol=SASL_SSL sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='[REMOVED KEY]' password='[REMOVED VALUE]'; sasl.mechanism=PLAIN
client.dns.lookup=use_all_dns_ips
session.timeout.ms=45000
acks=all
schema.registry.url=https://psrc-kk5gg.europe-west3.gcp.confluent.cloud basic.auth.credentials.source=USER_INFO schema.registry.basic.auth.user.info=[REMOVED KEY]:[REMOVED VALUE]`
I guess I've missed something?