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

Error message not explicit #142

Open
NouamaneTazi opened this issue Nov 17, 2022 · 1 comment
Open

Error message not explicit #142

NouamaneTazi opened this issue Nov 17, 2022 · 1 comment

Comments

@NouamaneTazi
Copy link
Member

When posting an empty json to a text-to-image pipeline I get the error:

{
  "error": [
    "str type expected: `__root__` in `parameters`"
  ]
}

Which somehow means that I need to post a json like this:

{
    "inputs": "monkey eating banana"
}

I think we could make the errors a little more explicit

@NouamaneTazi NouamaneTazi changed the title Error not clear Error message not explicit Nov 17, 2022
@Narsil
Copy link
Contributor

Narsil commented Nov 17, 2022

Would you be willing to open a PR for that ? :D

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

2 participants