Ошибка типа: issubclass() arg 1 должен быть классом Flask/Vercel ⇐ Python
Ошибка типа: issubclass() arg 1 должен быть классом Flask/Vercel
I'm currently trying to host my Flask application on Vercel, but I keep getting the same error,TypeError: issubclass() arg 1 must be a class Full log:
[WARNING] 2024-03-01T18:22:28.551Z Set both RATELIMIT_LIMIT and RATELIMIT_PERIOD in configuration. Default values are being used. [ERROR] TypeError: issubclass() arg 1 must be a class Traceback (most recent call last): File "/var/lang/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/var/task/vc__handler__python.py", line 31, in if not issubclass(base, BaseHTTPRequestHandler):INIT_REPORT Init Duration: 2833.05 ms Phase: invoke Status: error Error Type: Runtime.ExitError Unknown application error occurred I tried to change typing_extension to 4.5.0, typing-inspect to 0.8.0, andpydantic to 1.10.11, (as recommended here, but I still kept having the same issue.
Thanks in advance.
Источник: https://stackoverflow.com/questions/780 ... ask-vercel
I'm currently trying to host my Flask application on Vercel, but I keep getting the same error,TypeError: issubclass() arg 1 must be a class Full log:
[WARNING] 2024-03-01T18:22:28.551Z Set both RATELIMIT_LIMIT and RATELIMIT_PERIOD in configuration. Default values are being used. [ERROR] TypeError: issubclass() arg 1 must be a class Traceback (most recent call last): File "/var/lang/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/var/task/vc__handler__python.py", line 31, in if not issubclass(base, BaseHTTPRequestHandler):INIT_REPORT Init Duration: 2833.05 ms Phase: invoke Status: error Error Type: Runtime.ExitError Unknown application error occurred I tried to change typing_extension to 4.5.0, typing-inspect to 0.8.0, andpydantic to 1.10.11, (as recommended here, but I still kept having the same issue.
Thanks in advance.
Источник: https://stackoverflow.com/questions/780 ... ask-vercel
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Почему сужение типа Mypy IssubClass работает только на экземплярах "типа"?
Anonymous » » в форуме Python - 0 Ответы
- 2 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Почему сужение типа Mypy IssubClass работает только на экземплярах "типа"?
Anonymous » » в форуме Python - 0 Ответы
- 3 Просмотры
-
Последнее сообщение Anonymous
-