Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient projections statistics endpoint returns "Connection refused" error #3910

Open
ylorph opened this issue Jul 24, 2023 · 0 comments
Open
Labels
kind/bug Issues which are a software defect linear subsystem/projections Issues relating to the projections framework

Comments

@ylorph
Copy link
Contributor

ylorph commented Jul 24, 2023

Describe the bug
relates to https://discuss.eventstore.com/t/esdb-v22-transient-projections/4901/1

I have ESDB v22 with EnableAtomPubOverHttp: true, because I need to support existing apps that are using HTTP API to get data from ESDB. Everything works fine except for transient projections. One of the apps is creating transient projection, setting it to enabled state, and then tries to read statistics in order to start processing data as soon as projection is ready.
But this does not work because request for {transient_projection_url}/statistics fails with ECONNREFUSED error, which would imply that app is unable to communicate with ESDB HTTP Api, but it can because just on a line before it created transient projection.
Further more when I go to ESDB web interface to check for projections I can see that newly created transient projection is in “Running” mode, but when I try to get it’s statistics from app request fails with mentioned ECONNREFUSED error. Just to mention this was working fine with old ESDB v5.
An advice or help would be appreciated. Thanks.

To Reproduce
Steps to reproduce the behavior:

  • create transient projection ${ESDB_URL}/projections/transient?emit=no&checkpoints=no&enabled=true [OK]
  • every 5 seconds check if projection has “Completed” in status retrieved from ${transientProjectionUrl}/statistics [FAILS]
  • get content of transient projection from state ${transientProjectionUrl}/state [DOESN’T GET HERE]

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
A clear and concise description of what actually happened.

Config/Logs/Screenshots
If applicable, please attach your node configuration, logs or any screenshots.

EventStore details

  • EventStore server version: 22.x
  • Operating system:
  • EventStore client version (if applicable):

Additional context
Add any other context about the problem here.

DB-309

@ylorph ylorph added kind/bug Issues which are a software defect subsystem/projections Issues relating to the projections framework labels Jul 24, 2023
@alexeyzimarev alexeyzimarev changed the title ESDB v22 transient projections ( Stats & State) ESDB v22 transient projections statistics endpoint returns "Connection refused" error Jul 29, 2023
@alexeyzimarev alexeyzimarev changed the title ESDB v22 transient projections statistics endpoint returns "Connection refused" error Transient projections statistics endpoint returns "Connection refused" error Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues which are a software defect linear subsystem/projections Issues relating to the projections framework
Projects
None yet
Development

No branches or pull requests

2 participants