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

non-useful 'unknown form field: ' on v1beta/generation//image-to-image and masking #14

Open
georgzoeller opened this issue Feb 3, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@georgzoeller
Copy link

georgzoeller commented Feb 3, 2023

a form with these values (everything else default)

text_prompts[0][text] "test"
text_prompts[0][weight] 1
image_strength 0.35
init_image_mode "IMAGE_STRENGTH"

sent to the v1beta image to image endpoint (any engine as far as I can tell

returns

id: '250459a816a1624b1dbc944f97a05368',
message: 'unknown form field: ',
name: 'bad_request'

Populating the default values does not change that behavior.

Same for masking

@georgzoeller
Copy link
Author

Ok, I figured out that this was caused by supplying the wrong parameters with node form-data's additional config parameter on file appends.

While all form fields were present, specifying the filename in the config parameter caused the form to become invalid. Not sure if the messaging can be improved around this

@johnsabath johnsabath added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Feb 4, 2023
@johnsabath johnsabath added this to the v1 milestone Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants