We’ve got Event Store running on an AWS Linux server, and have it running nicely with remote connections sending event messages to the Store, with Projections working like a dream.
But now I need to get projections to be automatically deployable, so I’m attempting to use the HTTP API, and that’s where the problem starts. Following the Stream Metadata example:
curl -i http://127.0.0.1:2113/streams/$zme --user admin:changeit
I get:
HTTP/1.1 404 Not Found
Access-Control-Allow-Methods:
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Content-Type:
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
I know that this stream exists because I am writing to it. In fact any call to http://127.0.0.1:2113/streams returns a 404.
I’ve checked that the endpoint is accessible with: curl -i ‘http://0.0.0.0:2113/web/index.html’ -u admin:changeit which returns:
Event Store - {{ $state.current.data.title }}So I know that the endpoint is accessible.
What am I doing wrong?