-
Notifications
You must be signed in to change notification settings - Fork 524
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
Forward validation errors to agents #166
Comments
Weird. Just verified that I get back an empty response. Can you check with the Node agent, @watson? |
@beniwohli I just tested it with curl from the latest master. Here's the results. I think the issue is that the server sends back With curl default (
With curl and the header
|
I changed this to a bug as it's not working as intended |
OK, turns out I was using urllib3 wrong :( (in my defense, there are several stackoverflow questions and urllib3 bug reports that are similarly confused) @watson should we close this and open another issue specific to the buggy |
@beniwohli good idea |
The apm server helpfully spits out great validation error messages if a payload fails the JSON Schema validation:
This is great, but all the agent gets back is an empty
400 Bad Request
response. It would be great if the validation error message could be returned to the agent, e.g. as a JSON payload.The text was updated successfully, but these errors were encountered: