Why can't I access projections via node api? event-store-client

I have created a projection that allows me to see via contract. When I look in the web app, I can see projections that have been created, ei Contract-2623df1f-4e49-4807-a513-2c65025891bd. When I try to access this contract via the node api, it always comes back empty. The ‘started’ event gets his, but it is never dropped and none of the events get logged out.

connection.subscribeToStreamFrom(

‘Contract-2623df1f-4e49-4807-a513-2c65025891bd’,

0,

credentials,

e => console.log(‘event’, e),

e => console.log(‘started’, e),

e => console.log(‘dropped’, e)

)

Here is the console:

313961303936623532100118f40320002800 (93 bytes) ReadStreamEventsForward

Inbound: 20000000b30021069af3bac34cf9b87f43384e2494e1100018012000280130c5e3453a00 (36 bytes) ReadStreamEventsForwardCompleted

Outbound: 52000000c0012ff8a6894e424f51b18820851843aee90561646d696e086368616e676569740a2d436f6e74726163742d62376239396131662d373032362d343431642d616633662d3464633139613039366235321000 (86 bytes) SubscribeToStream

Inbound: 18000000c1002ff8a6894e424f51b18820851843aee908c5e3451000 (28 bytes) SubscriptionConfirmation

Outbound: 59000000b2012150cfff8259481fa241a9ab9eb6e4de0561646d696e086368616e676569740a2d436f6e74726163742d62376239396131662d373032362d343431642d616633662d346463313961303936623532100118f40320002800 (93 bytes) ReadStreamEventsForward

Inbound: 20000000b3002150cfff8259481fa241a9ab9eb6e4de100018012000280130c5e3453a00 (36 bytes) ReadStreamEventsForwardCompleted

started undefined

How am I able to view a single projection?

AFAIK there is no TCP API to access projections. You’ll have to use the HTTP API: https://eventstore.org/docs/projections/api/index.html

What do you see in UI for stream Contract-2623df1f-4e49-4807-a513-2c65025891bd?