Skip to content

handle_action does not send HTTP response on failure, causing Alexa error #132

@Decapodian

Description

@Decapodian

When handle_action in protocols.py fails (success=False), it only logs a warning and closes the transport without sending an HTTP response. This causes Alexa to timeout and report 'something went wrong' to the user.

The fix is to always send a valid SOAP response even on failure. Around line 187 in protocols.py, instead of only writing a response when success is True, always send the SOAP message.

This affects any plugin where on(), off(), or get_state() might fail or return unexpected values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions