mirror of
https://github.com/langgenius/webapp-text-generator.git
synced 2026-07-25 13:46:05 -04:00
500 Error when workflow uses a number variable #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sonicviz on GitHub (Aug 7, 2024).
Originally assigned to: @iamjoel on GitHub.
ref: https://discord.com/channels/1082486657678311454/1269851206180929566
If you have an input field of type number


your API will result in a 500 error when trying to parse it
This is because the code only parses string, select, and paragraph type inputs.
Solution is two parts.
Add number check here
Add input of type number here
@iamjoel commented on GitHub (Aug 7, 2024):
Fixed by https://github.com/langgenius/webapp-text-generator/pull/28