Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confluent_Schema_Registry - Error, status 400 #266

Open
Lucky38i opened this issue Aug 21, 2024 · 0 comments
Open

Confluent_Schema_Registry - Error, status 400 #266

Lucky38i opened this issue Aug 21, 2024 · 0 comments

Comments

@Lucky38i
Copy link

Hi all,

We've recently been trying to use this library in our AWS Node Lambdas to register a schema and then encode with it.

const schema = await readAVSCAsync(getSchemaFromKey(s3ObjectKey))
const {id} = await registry.register({type: SchemaType.AVRO, schema})

However I keep running into a recurring error during the register method call with a status 400. The call being made by the library is perfectly valid so it's a bit perplexing why it would be returning 400 and there's no other logs for me to go off of.

{
    "errorType": "ResponseError",
    "errorMessage": "Confluent_Schema_Registry - Error, status 400",
    "name": "ResponseError",
    "status": 400,
    "unauthorized": false,
    "url": "get https://<confluent-url>/config/<subject>",
    "stack": [
        "ResponseError: Confluent_Schema_Registry - Error, status 400",
        "    at /var/task/index.js:2206:102",
        "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
    ]
}

I've tried making the exact same call via bruno and I get a 404 as expected as compatability has not been configured for the subject.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant