Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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