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
POST'ing application/xml returning "HTTP/1.1 400 Write request body invalid." for valid xml #908
Comments
Is the culprit. Note text/xml is handled differently than application/xml. application/xml is getting processed as events+xml (should be moved up with text/xml) and my guess is the content type isn't getting set on the text/xml which is why it isn't showing up though not 100% positive on this part. I would just fix now but also needs some tests around this and don't have the time at the moment. |
I took care of the first part. Need to look more. Does TryHarder include it instead of body? We should be on this during the week and likely will point release a fix. Cheers, Greg |
Thanks. When reading a POST'ed text/xml event using: |
Currently embed is only supported in |
Closing this due to age, please reopen if you are still facing this issue. |
There seems to be a difference between:
Using application/vnd.eventstore.events+xml" with ES body specifing ES-EventType and ES-EventId
and
application/xml with headers specifing ES-EventType and ES-EventId
text/xml posts, but read side does not embed body.
application/xml returns "HTTP/1.1 400 Write request body invalid." for valid xml.
Reproducer:
echo "<foo>abc</foo>" | curl -i -H "ES-EventType: SomeEvent" -H "ES-EventId: C322E299-CB73-4B47-97C5-5054F9207461" -H "Content-Type: application/xml" -d @- http://127.0.0.1:2113/streams/newstream
See: https://groups.google.com/forum/#!topic/event-store/-DzbjtuqQF0
The text was updated successfully, but these errors were encountered: