ff14-advanced-market-search / saddlebag-with-pockets

This is the Frontend for the FF14 Marketplace

Home Page:https://saddlebagexchange.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wow shopping list lets you search without entering any item name

cohenaj194 opened this issue · comments

https://saddlebagexchange.com/wow/shopping-list

you can still hit search even without entering an item, this creates an empty post request without an item id

the frontend needs to give an error if you try to hit search before entering an item it recognizes

[7][2023-09-26 15:45:54,047] [app] [ERROR] [{'name': 'itemID', 'type_error': "<class 'NoneType'>", 'expected': "<class 'int'>"}]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/app/app.py", line 665, in get_wow_shopping_list
    verify_typing(kwargs, get_type_hints(get_wow_shoppinglist))
  File "/app/app.py", line 145, in verify_typing
    raise APITypeException(invalids)