Open hsean3 opened 3 months ago
I'm getting this error when I upload an image.
Unhandled Runtime Error SyntaxError: Unexpected end of JSON input
Source app\dream\page.tsx (91:29) @ json
89 | }); 90 |
91 | let newPhoto = await res.json(); | ^ 92 | if (res.status !== 200) { 93 | setError(newPhoto); 94 | } else {
I'm getting this error when I upload an image.
Unhandled Runtime Error SyntaxError: Unexpected end of JSON input
Source app\dream\page.tsx (91:29) @ json
89 | }); 90 |