Skip to content

Use response code to verify if request is success or not #98

Open
@Navya-Teja-Otturu

Description

@Navya-Teja-Otturu

In my case the action is failing the GitHub workflow job even when the notification ends up in MS TEAMS. After looking at the code I realise that an error is thrown when there is not text response. I did the same POST request the action is doing via the Postman and found that I get a 202 response without any text(attached the screenshot of the response).

Screenshot 2024-10-14 at 10 39 43

Hence, I would suggest to also check the response code before throwing an error.

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