Skip to content

fix(router): return correct error when creating event config fails (Cosmo Streams)#2333

Merged
dkorittki merged 1 commit into
topic/streams-v1from
dominik/eng-8485-wrong-error-returned-when-creating-subscription-event
Nov 14, 2025
Merged

fix(router): return correct error when creating event config fails (Cosmo Streams)#2333
dkorittki merged 1 commit into
topic/streams-v1from
dominik/eng-8485-wrong-error-returned-when-creating-subscription-event

Conversation

@dkorittki

Copy link
Copy Markdown
Contributor

@coderabbitai summary

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

During OnSubscriptionStart, when handlers are executed, we create event configurations. This can return errors. We unfortunately returned the wrong error variable in that case, which is always nil at that point. This has been fixed by returning the correct error. A new test case verifies this.

@coderabbitai

coderabbitai Bot commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dkorittki dkorittki changed the title fix(router): Return correct error when creating event config fails (Cosmo Streams) fix(router): return correct error when creating event config fails (Cosmo Streams) Nov 14, 2025
@github-actions

github-actions Bot commented Nov 14, 2025

Copy link
Copy Markdown

Router image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-95f1e5d85c7d06eb468774ac8264e948c448c32c

@dkorittki dkorittki merged commit 2955b62 into topic/streams-v1 Nov 14, 2025
42 of 45 checks passed
@dkorittki dkorittki deleted the dominik/eng-8485-wrong-error-returned-when-creating-subscription-event branch November 14, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants