Skip to content

Bad request "0.833" is not a number #2531

Open
@aloisdg

Description

@aloisdg
URL: https://fr.liberapay.com/~1640839/tip
Method: POST
Referer: b'https://fr.liberapay.com/~1640839/tip'
User-Agent: b'Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0'
Cookies: session=[43 bytes]; __stripe_mid=[42 bytes]; csrf_token=[32 bytes]
IP address: 2a01:e34:ec1e:2880:e01d:71b4:f43b:a529 (FR)
Time: 2025-02-07 16:29:51.646271+00:00
Response code: 400
Response message: '"0.833" n\'est pas un nombre valide.'
User: <Participant #10803 'alois'>
Locale: fr_FR
Website version: 781
Traceback:
  state_chain.py:315 (loop)
  pando/state_chain.py:128 (render_response)
  aspen/http/resource.py:141 (render)
  aspen/simplates/simplate.py:140 (render_for_type)
  www/%username/tip.spt:67 (<module>)
  liberapay/i18n/base.py:363 (parse_money_amount)

Maybe related to #1696

I think is is either related to the usage of the "." in a culture with the "," for decimal or maybe linked to a three decimals number.

I may try to fix it if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIissues concerning the User Interfacegood first issuesuitable for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions