Skip to content

goctl api ts request.ts logic error #4715

@guobin211

Description

@guobin211

JSON.stringify(data) error when data is byte[]

    const response = await fetch(url, {
        method: method.toLocaleUpperCase(),
        credentials: 'include',
        headers: {
            'Content-Type': 'application/json'
        },
        body: data ? JSON.stringify(data) : undefined,
        // @ts-ignore
        ...config
    });

Expected behavior

request support Blob

Screenshots

Image Image Image

Environments (please complete the following information):

  • OS: macos
  • goctl version 1.7.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions