[PR #32369] fix: add missing NodeType for question classifier + prevent duplicate request logging handlers #33697

Open
opened 2026-02-21 20:53:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32369

State: open
Merged: No


Summary

Two bug fixes:

Fix #32352: Question classifier backward invocation type error

invoke_question_classifier in api/core/plugin/backwards_invocation/node.py was missing:

node_data_dict["type"] = NodeType.QUESTION_CLASSIFIER

The invoke_parameter_extractor method correctly sets the node type, but this line was omitted for question classifier, causing a type error when plugins invoke the question classifier node via backward invocation.

Fix #30932: Duplicate request logging signal handlers

ext_request_logging.init_app() registered duplicate Flask signal handlers when called multiple times, causing repeated log entries per request. Now checks has_receivers_for() before connecting.

**Original Pull Request:** https://github.com/langgenius/dify/pull/32369 **State:** open **Merged:** No --- ## Summary Two bug fixes: ### Fix #32352: Question classifier backward invocation type error `invoke_question_classifier` in `api/core/plugin/backwards_invocation/node.py` was missing: ```python node_data_dict["type"] = NodeType.QUESTION_CLASSIFIER ``` The `invoke_parameter_extractor` method correctly sets the node type, but this line was omitted for question classifier, causing a type error when plugins invoke the question classifier node via backward invocation. ### Fix #30932: Duplicate request logging signal handlers `ext_request_logging.init_app()` registered duplicate Flask signal handlers when called multiple times, causing repeated log entries per request. Now checks `has_receivers_for()` before connecting.
yindo added the pull-request label 2026-02-21 20:53:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33697