Skip to content

goctl api ts request.ts logic error #4715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
guobin211 opened this issue Mar 18, 2025 · 0 comments
Open

goctl api ts request.ts logic error #4715

guobin211 opened this issue Mar 18, 2025 · 0 comments

Comments

@guobin211
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant