Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Denied Exceptions #11

Open
Corban-Lee opened this issue Jun 20, 2023 · 1 comment
Open

Permission Denied Exceptions #11

Corban-Lee opened this issue Jun 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Corban-Lee
Copy link
Owner

Investigate and correct these errors.
It might be trying to serve a file that doesn't exist.

[2023-06-20 21:51:43 +0100] [21876] [INFO] 127.0.0.1:55597 GET /output/getbootstrap.com/docs/4.5/getting-started/contents/ 1.1 500 - 13186
[2023-06-20 21:51:44 +0100] [21876] [ERROR] Error in ASGI Framework
Traceback (most recent call last):
  File "d:\Projects\WebShot\venv\Lib\site-packages\hypercorn\asyncio\task_group.py", line 23, in _handle
    await app(scope, receive, send, sync_spawn, call_soon)
  File "d:\Projects\WebShot\venv\Lib\site-packages\hypercorn\app_wrappers.py", line 33, in __call__
    await self.app(scope, receive, send)
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\app.py", line 1902, in __call__
    await self.asgi_app(scope, receive, send)
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\app.py", line 1928, in asgi_app
    await asgi_handler(receive, send)
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\asgi.py", line 51, in __call__
    _raise_exceptions(done)
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\asgi.py", line 353, in _raise_exceptions
    raise task.exception()
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\asgi.py", line 102, in handle_request
    await asyncio.wait_for(self._send_response(send, response), timeout=timeout)
  File "C:\Python311\Lib\asyncio\tasks.py", line 479, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\asgi.py", line 130, in _send_response
    async with response.response as response_body:
  File "d:\Projects\WebShot\venv\Lib\site-packages\quart\wrappers\response.py", line 149, in __aenter__
    self.file = await self.file_manager.__aenter__()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Projects\WebShot\venv\Lib\site-packages\aiofiles\base.py", line 98, in __aenter__
    self._obj = await self._coro
                ^^^^^^^^^^^^^^^^
  File "d:\Projects\WebShot\venv\Lib\site-packages\aiofiles\threadpool\__init__.py", line 97, in _open
    f = yield from loop.run_in_executor(executor, cb)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'output\\getbootstrap.com\\docs\\4.5\\getting-started\\contents'
@Corban-Lee Corban-Lee added the bug Something isn't working label Jun 20, 2023
@Corban-Lee
Copy link
Owner Author

It's trying to serve an image, but the path is pointing to a folder instead of an image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant