Getting the $all stream using curl does not give any error (tried it this morning). In the web UI I do get an error… and now I know a bit more about it!!!
I am accessing the ES cluster by its name and in the developer console of the browser I see that it does a request to a specific machine. And that one is telling me I am not authorized.
Initial request:
GET /streams/%24all?embed=tryharder HTTP/1.1
Host: esc**-dev.mydomain.com**:2113
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36
ES-LongPoll: 5
Authorization: Basic YWRtaW46Zm9vYmFy
Referer: http://esc-dev.mydomain.com:2113/web/index.html
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,nl;q=0.6
``
Response:
HTTP/1.1 307 Temporary Redirect
Access-Control-Allow-Methods: POST, DELETE, GET, 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://10.3.0.36:2113/streams/%24all?embed=tryharder
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=97
``
Second request (caused by the temporary redirect response):
GET /streams/%24all?embed=tryharder HTTP/1.1
Host: 10.3.0.36:2113
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json
Origin: http://esc-dev.mydomain.com:2113
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36
Referer: http://esc-dev.mydomain.com:2113/web/index.html
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,nl;q=0.6
``
Response:
HTTP/1.1 401 Unauthorized
Access-Control-Allow-Methods: POST, DELETE, GET, 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
WWW-Authenticate: Basic realm=“ES”
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
``
I guess this is also causing the popups being displayed (as I mentioned in https://groups.google.com/forum/#!topic/event-store/NUEaRW5fsZI).
Now to figure out why this is happening and how to solve it.
– Marcel