Python Forum
IndexError: list index out of range" & "TypeError: The view function f: Flask Web App
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IndexError: list index out of range" & "TypeError: The view function f: Flask Web App
#3

Hi Larz,

thanks for getting back to me with what i think is pretty close to a solution for my issue, after trying your suggestion for the (pay) function i get the following error, how would i reseolve this?


Error:
Traceback (most recent call last): File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 2088, in __call__ return self.wsgi_app(environ, start_response) File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app response = self.handle_exception(e) File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/Users/jay/.pyenv/versions/3.9.5/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/Users/jay/Documents/GitHub/MAPS/Ubuntu/var/www/optus/OPTUS/app_cc.py", line 137, in pay cc = "{}{1}{2}{3}".format(request.form.get('first'), ValueError: cannot switch from automatic field numbering to manual field specification
Your help is much appreciated :)
Reply


Messages In This Thread
RE: IndexError: list index out of range" & "TypeError: The view function f: Flask Web App - by joelbeater992 - Aug-31-2021, 06:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask run function in background and auto refresh page raossabe 2 8,357 Aug-20-2022, 10:00 PM
Last Post: snippsat
  Flask TypeError: Object of type Decimal is not JSON serializable mekacharan 0 4,113 Jul-15-2021, 05:28 AM
Last Post: mekacharan
  Python BeautifulSoup IndexError: list index out of range rhat398 1 6,422 May-28-2021, 09:09 PM
Last Post: Daring_T
  Using range slider in flask webpage to use in python KimPet 2 7,960 Jan-23-2021, 11:58 PM
Last Post: snippsat
  how to pass javascript variables to url_for function in a flask template experimental 5 6,654 Oct-29-2020, 03:29 AM
Last Post: universe
  single range function AgileAVS 3 2,259 Oct-05-2020, 08:30 AM
Last Post: buran
  Flask Create global response function to be called from every where in the web app umen 2 2,461 Apr-14-2020, 09:54 PM
Last Post: umen
  TypeError list indices must be integers or slices not str Nuwan16 4 3,658 Apr-04-2020, 09:15 AM
Last Post: Nuwan16
  IndexError: tuple index out of range ? JohnnyCoffee 4 3,553 Jan-22-2020, 06:54 AM
Last Post: JohnnyCoffee
  [Flask] How to paginate a list of posts SheeppOSU 2 4,511 Jun-22-2019, 07:45 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020