Skip to content

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Check the endpoint-list response before using its value** #678

Open

Description

@StuartFerguson

P2 Badge Check the endpoint-list response before using its value

If Catchup Service returns a non-success response such as 401 or 500, SendJsonAsync deliberately leaves Value null, but this dereference immediately throws NullReferenceException. That makes EventStoreSetup crash instead of returning the service's actionable status; validate IsSuccessStatusCode and Value before enumerating it (and do the same for the refreshed endpoint and subscription-configuration responses).

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #677 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions