Output size limit on MAP + MOUT #116

Open
opened 2026-02-03 13:05:02 +01:00 by Alfred-mk · 1 comment
Member

If the result of a handler exceeds 160 characters, one can include the MNEXT next 11 and MPREV prev 22, and these will allow one to access the entire content/output.

However, if the contents of a menu (including the MOUT statements) exceed 160 characters, adding the MNEXT and MPREV has no effect as the engine loop exits.

[D] render:page.go:400 rendered menu	bytes=97
[I] render:size.go:48 sized check fails	length=166, sizer=output: 160, member: 401
[T] render:size.go:49 sizer contents=alfredmk.sarafu.eth
Balance: 1.62 USDm
Credit: 207 ksh
Debt: 680 ksh
1: Send
2: Pay debt
3: Swap
4: My Vouchers
5: Select pool
6: M-Pesa
7: My Account
8: Help
9: Quit
.
.
.
loop exited with error: limit exceeded: output: 160, member: 401
exit status 1
If the result of a handler exceeds 160 characters, one can include the `MNEXT next 11` and `MPREV prev 22`, and these will allow one to access the entire content/output. However, if the contents of a menu (including the MOUT statements) exceed 160 characters, adding the MNEXT and MPREV has no effect as the engine loop exits. ``` [D] render:page.go:400 rendered menu bytes=97 [I] render:size.go:48 sized check fails length=166, sizer=output: 160, member: 401 [T] render:size.go:49 sizer contents=alfredmk.sarafu.eth Balance: 1.62 USDm Credit: 207 ksh Debt: 680 ksh 1: Send 2: Pay debt 3: Swap 4: My Vouchers 5: Select pool 6: M-Pesa 7: My Account 8: Help 9: Quit . . . loop exited with error: limit exceeded: output: 160, member: 401 exit status 1 ```
Alfred-mk added the Kind/BugKind/Enhancement
Priority
Critical
labels 2026-02-03 13:05:02 +01:00
Alfred-mk added
Status
Need More Info
Priority
Medium
and removed
Priority
Critical
labels 2026-02-03 14:54:04 +01:00
Author
Member

Resolved to updating the menu structure to avoid the error

Resolved to updating the menu structure to avoid the error
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#116