Skip to content

Failed to execute 'json' on 'Response': Unexpected end of JSON input #132

@joba62rule

Description

@joba62rule

I DOWNLOADED YOUR FIL AND FOLLOWED 100% THE STEPS YOU MENTIONED IN THE README, BUT GOT FOLLOWING ERROR RESPONSE page, kindly please check attached screenshot!

Runtime SyntaxError

Failed to execute 'json' on 'Response': Unexpected end of JSON input

app/page.js (28:37) @ handleSubmit

26 | }),
27 | });

28 | let prediction = await response.json();
| ^
29 | if (response.status !== 201) {
30 | setError(prediction.detail);
31 | return;
Call Stack
1

handleSubmit

Thanks

Image

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