Skip to content

Remove short circuit in app.$process() if no routes found.#396

Merged
heyitsaamir merged 3 commits into
mainfrom
kavin/bug/393
Dec 9, 2025
Merged

Remove short circuit in app.$process() if no routes found.#396
heyitsaamir merged 3 commits into
mainfrom
kavin/bug/393

Conversation

@singhk97

@singhk97 singhk97 commented Nov 12, 2025

Copy link
Copy Markdown
Collaborator

fixes #393

The returned { status: 200 } from app.$process is not handled by the plugin, and so the http response is not set causing the server to "hang". By not short circuiting, the program execution continues leading to onActivityResponse event being called and the HTTP response being set to default status of 200.

@singhk97 singhk97 changed the title Remove app.$process() short circuit if no routes found. Remove short circuit in app.$process() if no routes found. Nov 12, 2025

@heyitsaamir heyitsaamir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Can you add a test? And have you tested the behavior?

@singhk97

Copy link
Copy Markdown
Collaborator Author

This looks good. Can you add a test? And have you tested the behavior?

I've tested the behavior. Will add unit tests as well.

@singhk97

Copy link
Copy Markdown
Collaborator Author

#398 included unit tests in this PR. will wait for that to be checked in first

@singhk97

singhk97 commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator Author

Since #398 is merged, this PR should be good to merge.

@heyitsaamir
heyitsaamir merged commit d232cd3 into main Dec 9, 2025
9 checks passed
@heyitsaamir
heyitsaamir deleted the kavin/bug/393 branch December 9, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request hangs indefinitely on activities without handlers defined

2 participants