Skip to content

TextDecoder.decode() TypeError hangs the whole app #1032

@ushuz

Description

@ushuz

Describe the bug

Postwomen keeps raising following exception on a failed request, and hanging the app. I have to use browser's task manager to kill it. Screenshot below.

TypeError: Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArraryBuffer or ArrayBufferView)

To Reproduce
Steps to reproduce the behavior:

  1. Send an empty POST requests to https://www.feishu.cn/approval/openapi/v2/approval/get
  2. See error

Expected behavior

Display the error response without hanging the app.

Screenshots

image

Desktop (please complete the following information):

  • OS: macOS 10.15.6
  • Browser: Edge 84.0.522.48
  • Postwomen Version: v1.9.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions