Skip to content
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

tauri fetch got error: Error: Failed to parse responseas JSON: SyntaxError #9

Open
holmebin opened this issue Jan 19, 2024 · 0 comments

Comments

@holmebin
Copy link

tauri fetch got error: Error: Failed to parse response api as JSON: SyntaxError: Unexpected token 'a', "api" is not valid JSON;
try setting the responseType option to ResponseType.Text or ResponseType.Binary if the API does not return a JSON response.

对返回相应不是json的数据会报错误,需要提供设置的地方

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