umijs / umi-request

A request tool based on fetch.
2.21k stars 335 forks source link

修改了仅读属性报错 #305

Open pepsilfs opened 2 years ago

pepsilfs commented 2 years ago

image

image 代码有报错

pepsilfs commented 2 years ago

await response.clone().json() response.ok 404是这样会报错, SyntaxError: Unexpected token < in JSON at position 0

leegsen7 commented 2 years ago

我也是同样遇到了这个报错。 "umi-request": "^1.4.0"