First time profile edit croaks when invalid year is entered then valid #53

Closed
opened 2025-04-03 19:02:51 +02:00 by lash · 1 comment
Owner

should investgate whether this happens outside of the first-time edit aswell.

[I] vm:runner.go:276 catch!     flag=23, sym=incorrect_date_format, target=incorrect_date_format, mode=true
DUMP> State:
DUMP>   Path: incorrect_date_format (0)
DUMP>   Flags:
DUMP>           INTERNAL_WAIT(2)
DUMP>           INTERNAL_DIRTY(4)
DUMP>           ?unreg?(8)
DUMP>           ?unreg?(9)
DUMP>           ?unreg?(12)
DUMP>           ?unreg?(14)
DUMP>           ?unreg?(20)
DUMP>           ?unreg?(39)
DUMP> Cache[0]:
DUMP> Cache[1]:
DUMP>   check_blocked_status: 
DUMP>   check_account_created: 
DUMP>   check_account_status: 
DUMP> Cache[2]:
DUMP>   clear_temporary_value: 
DUMP>   manage_vouchers: 
DUMP>   check_balance: Balance: 500.00 FOO

DUMP> Cache[3]:
DUMP>   authorize_account: 
DUMP>   reset_allow_update: 
DUMP> Cache[4]:
DUMP>   reset_account_authorized: 
DUMP>   set_back: 
DUMP> Cache[5]:
DUMP>   get_current_profile_info: Not Provided
DUMP>   save_firstname: 
DUMP> Cache[6]:
DUMP>   save_familyname: 
DUMP> Cache[7]:
DUMP> Cache[8]:
DUMP>   save_gender: 
DUMP> Cache[9]:
DUMP>   verify_yob: 
DUMP> Cache[10]:
DUMP>   reset_incorrect_date_format: 
The year of birth you entered is invalid.
Please try again.
1: Retry
9: Quit
1234
[I] engine:db.go:524 new VM execution with input        input=31323334
[I] engine:db.go:400 runner finished with no remaining code     state=state @0xc000124000 moves: 29 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),INTERNAL_DIRTY(4),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: root/main/my_account/edit_profile/edit_first_name/edit_family_name/select_gender/set_male/edit_yob/incorrect_date_format/_catch lang: eng (English)
DUMP> State:
DUMP>   Path: _catch (0)
DUMP>   Flags:
DUMP>           INTERNAL_READIN(0)
DUMP>           INTERNAL_WAIT(2)
DUMP>           INTERNAL_DIRTY(4)
DUMP>           ?unreg?(8)
DUMP>           ?unreg?(9)
DUMP>           ?unreg?(12)
DUMP>           ?unreg?(14)
DUMP>           ?unreg?(20)
DUMP>           ?unreg?(39)
DUMP> Cache[0]:
DUMP> Cache[1]:
DUMP>   check_blocked_status: 
DUMP>   check_account_created: 
DUMP>   check_account_status: 
DUMP> Cache[2]:[I] vm:runner.go:276 catch!     flag=23, sym=incorrect_date_format, target=incorrect_date_format, mode=true
DUMP> State:
DUMP>   Path: incorrect_date_format (0)
DUMP>   Flags:
DUMP>           INTERNAL_WAIT(2)
DUMP>           INTERNAL_DIRTY(4)
DUMP>           ?unreg?(8)
DUMP>           ?unreg?(9)
DUMP>           ?unreg?(12)
DUMP>           ?unreg?(14)
DUMP>           ?unreg?(20)
DUMP>           ?unreg?(39)
DUMP> Cache[0]:
DUMP> Cache[1]:
DUMP>   check_blocked_status: 
DUMP>   check_account_created: 
DUMP>   check_account_status: 
DUMP> Cache[2]:
DUMP>   clear_temporary_value: 
DUMP>   manage_vouchers: 
DUMP>   check_balance: Balance: 500.00 FOO

DUMP> Cache[3]:
DUMP>   authorize_account: 
DUMP>   reset_allow_update: 
DUMP> Cache[4]:
DUMP>   reset_account_authorized: 
DUMP>   set_back: 
DUMP> Cache[5]:
DUMP>   get_current_profile_info: Not Provided
DUMP>   save_firstname: 
DUMP> Cache[6]:
DUMP>   save_familyname: 
DUMP> Cache[7]:
DUMP> Cache[8]:
DUMP>   save_gender: 
DUMP> Cache[9]:
DUMP>   verify_yob: 
DUMP> Cache[10]:
DUMP>   reset_incorrect_date_format: 
The year of birth you entered is invalid.
Please try again.
1: Retry
9: Quit
1234
[I] engine:db.go:524 new VM execution with input        input=31323334
[I] engine:db.go:400 runner finished with no remaining code     state=state @0xc000124000 moves: 29 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),INTERNAL_DIRTY(4),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: root/main/my_account/edit_profile/edit_first_name/edit_family_name/select_gender/set_male/edit_yob/incorrect_date_format/_catch lang: eng (English)
DUMP> State:
DUMP>   Path: _catch (0)
DUMP>   Flags:
DUMP>           INTERNAL_READIN(0)
DUMP>           INTERNAL_WAIT(2)
DUMP>           INTERNAL_DIRTY(4)
DUMP>           ?unreg?(8)
DUMP>           ?unreg?(9)
DUMP>           ?unreg?(12)
DUMP>           ?unreg?(14)
DUMP>           ?unreg?(20)
DUMP>           ?unreg?(39)
DUMP> Cache[0]:
DUMP> Cache[1]:
DUMP>   check_blocked_status: 
DUMP>   check_account_created: 
DUMP>   check_account_status: 
DUMP> Cache[2]:
DUMP>   manage_vouchers: 
DUMP>   check_balance: Balance: 500.00 FOO

DUMP>   clear_temporary_value: 
DUMP> Cache[3]:
DUMP>   reset_allow_update: 
DUMP>   authorize_account: 
DUMP> Cache[4]:
DUMP>   reset_account_authorized: 
DUMP>   set_back: 
DUMP> Cache[5]:
DUMP>   get_current_profile_info: Not Provided
DUMP>   save_firstname: 
DUMP> Cache[6]:
DUMP>   save_familyname: 
DUMP> Cache[7]:
DUMP> Cache[8]:
DUMP>   save_gender: 
DUMP> Cache[9]:
DUMP>   verify_yob: 
DUMP> Cache[10]:
DUMP>   reset_incorrect_date_format: 
DUMP> Cache[11]:
invalid input: '1234'
Something went wrong.Please try again
[I] persist:persist.go:100 saving state and cache       self=persister @0xc000053680 state:0xc000124000 cache:0xc00011a040, key=foo, state=state @0xc000124000 moves: 40 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path:  lang: eng (English)
[lash@contralto sarafu-vise]$ 

DUMP>   manage_vouchers: 
DUMP>   check_balance: Balance: 500.00 FOO

DUMP>   clear_temporary_value: 
DUMP> Cache[3]:
DUMP>   reset_allow_update: 
DUMP>   authorize_account: 
DUMP> Cache[4]:
DUMP>   reset_account_authorized: 
DUMP>   set_back: 
DUMP> Cache[5]:
DUMP>   get_current_profile_info: Not Provided
DUMP>   save_firstname: 
DUMP> Cache[6]:
DUMP>   save_familyname: 
DUMP> Cache[7]:
DUMP> Cache[8]:
DUMP>   save_gender: 
DUMP> Cache[9]:
DUMP>   verify_yob: 
DUMP> Cache[10]:
DUMP>   reset_incorrect_date_format: 
DUMP> Cache[11]:
invalid input: '1234'
Something went wrong.Please try again
[I] persist:persist.go:100 saving state and cache       self=persister @0xc000053680 state:0xc000124000 cache:0xc00011a040, key=foo, state=state @0xc000124000 moves: 40 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path:  lang: eng (English)
[lash@contralto sarafu-vise]$ 
should investgate whether this happens outside of the first-time edit aswell. ``` [I] vm:runner.go:276 catch! flag=23, sym=incorrect_date_format, target=incorrect_date_format, mode=true DUMP> State: DUMP> Path: incorrect_date_format (0) DUMP> Flags: DUMP> INTERNAL_WAIT(2) DUMP> INTERNAL_DIRTY(4) DUMP> ?unreg?(8) DUMP> ?unreg?(9) DUMP> ?unreg?(12) DUMP> ?unreg?(14) DUMP> ?unreg?(20) DUMP> ?unreg?(39) DUMP> Cache[0]: DUMP> Cache[1]: DUMP> check_blocked_status: DUMP> check_account_created: DUMP> check_account_status: DUMP> Cache[2]: DUMP> clear_temporary_value: DUMP> manage_vouchers: DUMP> check_balance: Balance: 500.00 FOO DUMP> Cache[3]: DUMP> authorize_account: DUMP> reset_allow_update: DUMP> Cache[4]: DUMP> reset_account_authorized: DUMP> set_back: DUMP> Cache[5]: DUMP> get_current_profile_info: Not Provided DUMP> save_firstname: DUMP> Cache[6]: DUMP> save_familyname: DUMP> Cache[7]: DUMP> Cache[8]: DUMP> save_gender: DUMP> Cache[9]: DUMP> verify_yob: DUMP> Cache[10]: DUMP> reset_incorrect_date_format: The year of birth you entered is invalid. Please try again. 1: Retry 9: Quit 1234 [I] engine:db.go:524 new VM execution with input input=31323334 [I] engine:db.go:400 runner finished with no remaining code state=state @0xc000124000 moves: 29 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),INTERNAL_DIRTY(4),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: root/main/my_account/edit_profile/edit_first_name/edit_family_name/select_gender/set_male/edit_yob/incorrect_date_format/_catch lang: eng (English) DUMP> State: DUMP> Path: _catch (0) DUMP> Flags: DUMP> INTERNAL_READIN(0) DUMP> INTERNAL_WAIT(2) DUMP> INTERNAL_DIRTY(4) DUMP> ?unreg?(8) DUMP> ?unreg?(9) DUMP> ?unreg?(12) DUMP> ?unreg?(14) DUMP> ?unreg?(20) DUMP> ?unreg?(39) DUMP> Cache[0]: DUMP> Cache[1]: DUMP> check_blocked_status: DUMP> check_account_created: DUMP> check_account_status: DUMP> Cache[2]:[I] vm:runner.go:276 catch! flag=23, sym=incorrect_date_format, target=incorrect_date_format, mode=true DUMP> State: DUMP> Path: incorrect_date_format (0) DUMP> Flags: DUMP> INTERNAL_WAIT(2) DUMP> INTERNAL_DIRTY(4) DUMP> ?unreg?(8) DUMP> ?unreg?(9) DUMP> ?unreg?(12) DUMP> ?unreg?(14) DUMP> ?unreg?(20) DUMP> ?unreg?(39) DUMP> Cache[0]: DUMP> Cache[1]: DUMP> check_blocked_status: DUMP> check_account_created: DUMP> check_account_status: DUMP> Cache[2]: DUMP> clear_temporary_value: DUMP> manage_vouchers: DUMP> check_balance: Balance: 500.00 FOO DUMP> Cache[3]: DUMP> authorize_account: DUMP> reset_allow_update: DUMP> Cache[4]: DUMP> reset_account_authorized: DUMP> set_back: DUMP> Cache[5]: DUMP> get_current_profile_info: Not Provided DUMP> save_firstname: DUMP> Cache[6]: DUMP> save_familyname: DUMP> Cache[7]: DUMP> Cache[8]: DUMP> save_gender: DUMP> Cache[9]: DUMP> verify_yob: DUMP> Cache[10]: DUMP> reset_incorrect_date_format: The year of birth you entered is invalid. Please try again. 1: Retry 9: Quit 1234 [I] engine:db.go:524 new VM execution with input input=31323334 [I] engine:db.go:400 runner finished with no remaining code state=state @0xc000124000 moves: 29 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),INTERNAL_DIRTY(4),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: root/main/my_account/edit_profile/edit_first_name/edit_family_name/select_gender/set_male/edit_yob/incorrect_date_format/_catch lang: eng (English) DUMP> State: DUMP> Path: _catch (0) DUMP> Flags: DUMP> INTERNAL_READIN(0) DUMP> INTERNAL_WAIT(2) DUMP> INTERNAL_DIRTY(4) DUMP> ?unreg?(8) DUMP> ?unreg?(9) DUMP> ?unreg?(12) DUMP> ?unreg?(14) DUMP> ?unreg?(20) DUMP> ?unreg?(39) DUMP> Cache[0]: DUMP> Cache[1]: DUMP> check_blocked_status: DUMP> check_account_created: DUMP> check_account_status: DUMP> Cache[2]: DUMP> manage_vouchers: DUMP> check_balance: Balance: 500.00 FOO DUMP> clear_temporary_value: DUMP> Cache[3]: DUMP> reset_allow_update: DUMP> authorize_account: DUMP> Cache[4]: DUMP> reset_account_authorized: DUMP> set_back: DUMP> Cache[5]: DUMP> get_current_profile_info: Not Provided DUMP> save_firstname: DUMP> Cache[6]: DUMP> save_familyname: DUMP> Cache[7]: DUMP> Cache[8]: DUMP> save_gender: DUMP> Cache[9]: DUMP> verify_yob: DUMP> Cache[10]: DUMP> reset_incorrect_date_format: DUMP> Cache[11]: invalid input: '1234' Something went wrong.Please try again [I] persist:persist.go:100 saving state and cache self=persister @0xc000053680 state:0xc000124000 cache:0xc00011a040, key=foo, state=state @0xc000124000 moves: 40 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: lang: eng (English) [lash@contralto sarafu-vise]$ DUMP> manage_vouchers: DUMP> check_balance: Balance: 500.00 FOO DUMP> clear_temporary_value: DUMP> Cache[3]: DUMP> reset_allow_update: DUMP> authorize_account: DUMP> Cache[4]: DUMP> reset_account_authorized: DUMP> set_back: DUMP> Cache[5]: DUMP> get_current_profile_info: Not Provided DUMP> save_firstname: DUMP> Cache[6]: DUMP> save_familyname: DUMP> Cache[7]: DUMP> Cache[8]: DUMP> save_gender: DUMP> Cache[9]: DUMP> verify_yob: DUMP> Cache[10]: DUMP> reset_incorrect_date_format: DUMP> Cache[11]: invalid input: '1234' Something went wrong.Please try again [I] persist:persist.go:100 saving state and cache self=persister @0xc000053680 state:0xc000124000 cache:0xc00011a040, key=foo, state=state @0xc000124000 moves: 40 idx: 0 flags: INTERNAL_READIN(0),INTERNAL_WAIT(2),?unreg?(8),?unreg?(9),?unreg?(12),?unreg?(14),?unreg?(20),?unreg?(39) path: lang: eng (English) [lash@contralto sarafu-vise]$ ```
lash added the
Kind/Bug
Status
Need More Info
Priority
Medium
labels 2025-04-03 19:03:02 +02:00
Member

The error:

invalid input: '1234'
Something went wrong.Please try again

comes about as the node expects either 1 or 9 as the input.

Input 1 should take you to the previous node for date input for one to retry, and 9 will quit

A fix would be adding INCMP . * on a majority of such nodes for the user to remain in the current node until they enter an expected input (1 or 9)

The error: ``` invalid input: '1234' Something went wrong.Please try again ``` comes about as the node expects either `1` or `9` as the input. Input 1 should take you to the previous node for date input for one to retry, and 9 will quit A fix would be adding `INCMP . *` on a majority of such nodes for the user to remain in the current node until they enter an expected input (1 or 9)
lash closed this issue 2025-04-04 12:54:42 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#53
No description provided.