These are chat archives for YoEight/eventstore

5th
May 2017
paullucas
@paullucas
May 05 2017 20:58
Hey, is there a reason I'm not getting any events from the all stream? Sending events to a stream "abc" while I have this code running:
{-# LANGUAGE OverloadedStrings #-}

module Main where

import Database.EventStore

main :: IO ()
main = do
  conn <- connect defaultSettings (Static "127.0.0.1" 1113)
  sub  <- subscribeToAll conn False
  print $ isSubscribedToAll sub
  print $ getSubStream sub

  let loop = do
        event <- nextEvent sub
        print "Event!"
        loop

  loop
  shutdown conn
  waitTillClosed conn
paullucas
@paullucas
May 05 2017 21:12
isSubscribedToAll and getSubStream seem to work (True and "")
Yorick Laupa
@YoEight
May 05 2017 22:14
You may not be authenticated. By default, reading $all need to be admin. Update Settings accordingly and you will receive events. Also, you need to do stuff (like writing events), in order to $all to get updated
The lack of feedback from the driver, if you actually needed to get authenticated may need a patch though. If it's confirmed, I will fix it.