Skip to content

HTTP 400: data validation error: Problem validating JSON document against schema #295

Closed
@jaap3

Description

@jaap3

Sometimes when sending an event to the APM instance a HTTP 400 response is returned:

HTTP 400: data validation error: Problem validating JSON document against schema: 
I[#] S[#] doesn't validate with "error#" I[#/errors/0/log/message] 
S[#/properties/errors/items/properties/log/properties/message/type] 
expected string, but got array

I've also seen a similar, but subtly different message:

HTTP 400: data validation error: Problem validating JSON document against schema: 
I[#] S[#] doesn't validate with "error#" I[#/errors/0/log/param_message] 
S[#/properties/errors/items/properties/log/properties/param_message/type] 
expected string or null, but got array

This is then followed by a log message:

Failed to submit message: '<no message value>'

I'm using the latest elastic-apm client available from PyPI (3.0.1) with Python 3.6.5 and the APM server is using version 6.4.1.

(This seems similar to #135, but not quite the same).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions