Search Issue Tracker

Fixed

Votes

0

Found in [Package]

0.2.0

Issue ID

BMUSE-14

Regression

No

When prompt contains > 1024 characters it doesn't generate and throws errors

Package: Muse Common Library

-

How to reproduce:
1. Open Muse Sprite or Texture
2. Enter a prompt with 1025 characters or more
3. Click Generate

Expected result: It is impossible to enter a prompt with more than 1024 characters
Actual result: No sprite/texture is generated and errors are thrown in console

Tested with: 2023.3.0a16, Common tools package 1.0.0-pre2 MacOS 14.1.1 M1 Max

Error:
{code:java}
TextToSpriteController.OnSpriteGenerateFailed: Result: ProtocolError Error:HTTP/1.1 400 Bad Request Retry:5 {"success":false,"error":"Validation error: [{'loc': ('body', 'prompt'), 'msg': 'ensure this value has at most 1024 characters', 'type': 'value_error.any_str.max_length', 'ctx': {'limit_value': 1024}}]"}{code}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.