Getting 415 Unsupported Media Type error intermittently when trying to retrieve AVRO schema

581 views
Skip to first unread message

sc...@switzer.org

unread,
Sep 24, 2015, 1:24:24 PM9/24/15
to Confluent Platform
Hi -

When we make a change to the AVRO schema in the Confluent Schema Registry on a fairly busy server (1K tx/s), and deploy, a few of the threads on our web server request the new AVRO schema from the registry and get a 415 Error.  Others successfully retrieve the AVRO schema.  This causes issues to our pipeline downstream, and we have to restart our web server container over and over until these errors go away.

We are on the latest stable version of Confluent Schema Registry.  Here is an error:

2015/09/24 15:36:17 [emerg] 283#0: *390 [lua] logger.lua:20: emergency(): UNABLE TO RETRIEVE AVRO SCHEMA - response code:415: body:{"error_code":415,"message":"HTTP 415 Unsupported Media Type"} 

These errors are more and more common as our traffic increases.  I would appreciate help or advice on this.

Cheers,
Scott


Geoff Anderson

unread,
Sep 24, 2015, 3:15:59 PM9/24/15
to confluent...@googlegroups.com
Hi Scott,

Is this in production? If you set the schema registry to debug mode (in schema-registry.properties, add or change "debug=true"), you'll get back a stack trace in the http response.

I'm surprised to see a 415 error if your trying to retrieve a schema from the registry given that this is typically a GET request and not a PUT or a POST. 

What does the schema retrieval logic look like? More specifically, what is/are the actual HTTP request(s) being sent to retrieve the schema?

Note that GET requests can cause a 415 if you specify a bad "Content-type" header.

Thanks,
Geoff



--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/700bf2ed-0849-4750-b054-286b2249d338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages