Unable to write to cluster when DNS routes to a slave node

For what it’s worth, this was a build of commit 8b76210837d004b71c328716bbc18089eef06f3d which is a few days old it looks like.

I started it with:

sudo mono bin/clusternode/EventStore.ClusterNode.exe --config /usr/lib/event-store/config.yml --http-prefixes=[http://*:2113/](http://*:2113/`)

litch@ip-10-0-0-112:~$ cat /usr/lib/event-store/config.yml

What options dpnt work on command line but do work in yaml on dev?

Actually, that’s right, I think that issue is resolved in dev now. I am still feeling the pain of the config setup I had to go through to get 3.0.3 to work. I just tried putting the http-prefixes into config.yml works. Phew.

Why would ypu have any expectation for that to work? Try posting to the redirected uri like you posted to the original uri

I would expect the original post to work, since it worked on 3.0.3.

litch@ip-10-0-0-205:~$ curl -i -d@./myevent.txt “http://eventstore.staging.obsidian.local:2113/streams/newstream” -H “Content-Type:application/json” -H “ES-EventType: SomeEvent6”

HTTP/1.1 307 Temporary Redirect

Access-Control-Allow-Methods: POST, DELETE, GET, OPTIONS

Access-Control-Allow-Headers: Content-Type, X-Requested-With, 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

Location: http://eventstore.staging.obsidian.local:2113/streams/newstream/incoming/93a5b95e-ff64-472f-bb26-06fc107b4f1d

Content-Type: text/plain; charset=utf-8

Server: Mono-HTTPAPI/1.0

What you originally posted … post then get redirected uri wouldnt work with any version of es there has ever been. Post and get are different you cant post -> redirect then get redirect.

Re 301 vs 307 both are redirects one is permanent the other is temporary … slightly different meaning. I would have to check the docs. Both have the same behaviour in this case from any well behaved client as uris are unique.