当我尝试发布没有eventId的事件时,我得到:
提供HTTP/1.1 400空eventId.
如果我用随机的东西填充eventId,那么我得到:
HTTP/1.1 400写请求正文无效
在服务器的标准输出中,我看到:
将值"foo"转换为"System.Guid"类型时出错
获得有效的EventId需要什么?
命令:
curl -i -d @event.json localhost:2113/streams/birthday-offer \
-H "Content-Type:application/vnd.eventstore.events+json"
Run Code Online (Sandbox Code Playgroud)
event.json:
[
{
"eventId": "foo",
"eventType": "bar",
"data": {
"who": "11111111111",
"which": "birthday-offer"
}
}
]
Run Code Online (Sandbox Code Playgroud)
我不是.NET语言.