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

Nakadi throws 500 when an event is published which does not conform to a json schema #167

Closed
bpraveen opened this issue Mar 9, 2016 · 1 comment

Comments

@bpraveen
Copy link

bpraveen commented Mar 9, 2016

java.lang.RuntimeException: Could not read url: /event-types/PRODUCT_AVAILABILITY_UPDATES/events, status code: 500, message: Internal Server Error, result: {"type":"http://httpstatus.es/500","title":"Internal Server Error","status":500,"detail":"An internal error happened. Please report it. (ETIF4fVmOryh8ZOUiC7hkrbx2it)"}

@bpraveen bpraveen changed the title Nakadi throws 500 when an event is published which does not confirm to a json schema Nakadi throws 500 when an event is published which does not conform to a json schema Mar 9, 2016
@rcillo
Copy link
Contributor

rcillo commented Mar 10, 2016

The referred event-type has been created previously to the schema validation feature. This feature introduces some backward incompatibilities, such that every event type whose schema is not a valid json should stop working.

In this case, the event type:

{
    "name": "PRODUCT_AVAILABILITY_UPDATES",
    "owning_application": "product-availability",
    "category": "data",
    "partitioning_key_fields": [],
    "schema": {
      "type": "json_schema",
      "schema": "SCHEMA"
    }
  }

Contains a schema "SCHEMA" which is not valid json. That's why you get a 500. We'll delete this event type from the sandbox environment since it's not valid anymore.

@rcillo rcillo closed this as completed Mar 10, 2016
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

2 participants