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

ERR_BUFFER_OUT_OF_BOUNDS while decoding with Schema registry #207

Open
realmohan001 opened this issue Jun 3, 2022 · 0 comments
Open

ERR_BUFFER_OUT_OF_BOUNDS while decoding with Schema registry #207

realmohan001 opened this issue Jun 3, 2022 · 0 comments

Comments

@realmohan001
Copy link

Hi,

I am getting below error when decoding the message. let me know if you have seen this error before. What are the options to fix it?

{"level":"ERROR","timestamp":"2022-06-03T18:57:28.571Z","logger":"kafkajs","message":"[Runner] Error when calling eachMessage","topic":"flight.data","partition":3,"offset":"0","stack":"RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds\n at boundsError (internal/buffer.js:81:11)\n at Buffer.readInt32BE (internal/buffer.js:479:5)\n at Object.exports.default (/Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/@kafkajs/confluent-schema-registry/dist/wireDecoder.js:5:36)\n at SchemaRegistry.decode (/Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/@kafkajs/confluent-schema-registry/dist/SchemaRegistry.js:135:73)\n at Runner.eachMessage (/Users/e144489/Documents/devtools/kafka_nodejs_client/swa_consumer.js:49:43)\n at Runner.processEachMessage (/Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/consumer/runner.js:191:20)\n at onBatch (/Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/consumer/runner.js:393:20)\n at /Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/consumer/runner.js:409:15\n at retry (/Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/retry/index.js:43:5)\n at /Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/retry/index.js:75:5","error":{"code":"ERR_BUFFER_OUT_OF_BOUNDS"}}

{"level":"ERROR","timestamp":"2022-06-03T18:57:33.762Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSNonRetriableError: Attempt to access memory outside buffer bounds","groupId":"test-group2","stack":"KafkaJSNonRetriableError: Attempt to access memory outside buffer bounds\n at /Users/e144489/Documents/devtools/kafka_nodejs_client/node_modules/kafkajs/src/retry/index.js:55:18\n at processTicksAndRejections (internal/process/task_queues.js:95:5)"}

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