Unbekannte Benutzer führen zu einem Fehler mit tracking id statt einer fehlermeldung #247

Closed
opened 2023-03-06 20:34:54 +01:00 by edraft · 0 comments
Owner

<2023-03-06 19:31:25.062674> [ ERROR ] [ bot_api.api ] [ Api ] [ Api ]: Tracking Id: ecf8c492-2b3f-4538-b9a7-8f61534f9c70
<2023-03-06 19:31:25.062895> [ ERROR ] [ bot_api.api ] [ Api ]: expected string or bytes-like object -> Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 240, in call
return call_result.result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 306, in main_wrap
result = await self.awaitable(*args, **kwargs)
File "/app/bot_api/controller/auth_discord_controller.py", line 93, in discord_login
result = await self._auth_service.login_discord_async(dto, response["id"])
File "/app/bot_api/service/auth_service.py", line 486, in login_discord_async
self.add_auth_user(user_dto)
File "/app/bot_api/service/auth_service.py", line 237, in add_auth_user
if not self._is_email_valid(user.email):
File "/app/bot_api/service/auth_service.py", line 83, in _is_email_valid
if re.fullmatch(_email_regex, email) is not None:
File "/usr/local/lib/python3.10/re.py", line 195, in fullmatch
return _compile(pattern, flags).fullmatch(string)
TypeError: expected string or bytes-like object

<2023-03-06 19:31:25.062674> [ ERROR ] [ bot_api.api ] [ Api ] [ Api ]: Tracking Id: ecf8c492-2b3f-4538-b9a7-8f61534f9c70 <2023-03-06 19:31:25.062895> [ ERROR ] [ bot_api.api ] [ Api ]: expected string or bytes-like object -> Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 240, in __call__ return call_result.result() File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 439, in result return self.__get_result() File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 391, in __get_result raise self._exception File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 306, in main_wrap result = await self.awaitable(*args, **kwargs) File "/app/bot_api/controller/auth_discord_controller.py", line 93, in discord_login result = await self._auth_service.login_discord_async(dto, response["id"]) File "/app/bot_api/service/auth_service.py", line 486, in login_discord_async self.add_auth_user(user_dto) File "/app/bot_api/service/auth_service.py", line 237, in add_auth_user if not self._is_email_valid(user.email): File "/app/bot_api/service/auth_service.py", line 83, in _is_email_valid if re.fullmatch(_email_regex, email) is not None: File "/usr/local/lib/python3.10/re.py", line 195, in fullmatch return _compile(pattern, flags).fullmatch(string) TypeError: expected string or bytes-like object
edraft added this to the Sprint 1.0.0 milestone 2023-03-06 20:34:54 +01:00
edraft added the
bug
label 2023-03-06 20:34:54 +01:00
edraft added this to the Sprint 1.0.0 project 2023-03-06 20:34:54 +01:00
edraft referenced this issue from a commit 2023-03-09 11:10:56 +01:00
edraft referenced this issue from a commit 2023-03-09 11:22:13 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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: sh-edraft.de/sh_discord_bot#247
No description provided.