chaos testing: upload zip, choose theme, click distribusify gives "TypeError: expected str, bytes or os.PathLike object, not NoneType" #10

Closed
opened 3 years ago by decentral1se · 2 comments
nothing to deploy!
127.0.0.1 - - [16/Jan/2022 17:38:55] "POST /distribusi HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/posixpath.py", line 82, in join
    for b in map(os.fspath, p):
TypeError: expected str, bytes or os.PathLike object, not NoneType

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2091, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2076, in wsgi_app
    response = self.handle_exception(e)
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view
    return func(*args, **kwargs)
  File "/home/d/work/varia/distribusi-verse/verse/start.py", line 140, in distribusi
    userfolder = os.path.join("stash", user.distribusiname)
  File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/posixpath.py", line 90, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/genericpath.py", line 152, in _check_arg_types
    raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
``` nothing to deploy! 127.0.0.1 - - [16/Jan/2022 17:38:55] "POST /distribusi HTTP/1.1" 500 - Traceback (most recent call last): File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/posixpath.py", line 82, in join for b in map(os.fspath, p): TypeError: expected str, bytes or os.PathLike object, not NoneType During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2091, in __call__ return self.wsgi_app(environ, start_response) File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2076, in wsgi_app response = self.handle_exception(e) File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app response = self.full_dispatch_request() File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request rv = self.dispatch_request() File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/home/d/work/varia/distribusi-verse/.venv/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view return func(*args, **kwargs) File "/home/d/work/varia/distribusi-verse/verse/start.py", line 140, in distribusi userfolder = os.path.join("stash", user.distribusiname) File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/posixpath.py", line 90, in join genericpath._check_arg_types('join', a, *p) File "/home/d/.pyenv/versions/3.9.0/lib/python3.9/genericpath.py", line 152, in _check_arg_types raise TypeError(f'{funcname}() argument must be str, bytes, or ' TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType' ```
Poster

zip attached.

zip attached.
458 B
Owner

a12caf31c

Somehow you were able to try to run distribusi before hitting the upload button.
This is now solved quick and dirty by disabling the buttons until upload is completed.

a12caf31c Somehow you were able to try to run distribusi before hitting the upload button. This is now solved quick and dirty by disabling the buttons until upload is completed.
crunk closed this issue 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.