Skip to content

Got following Errror "web-stats.json file not found error" when I trying to connect backend . #68

@mvicki93

Description

@mvicki93

Hi Matt,
First of all thank you much for the nice blog("https://justdjango.com/blog/chat-app-django-channels"), it's very helpful to who want to learn web development.

Issue:
I am following the "https://justdjango.com/blog/chat-app-django-channels" to create chat app for my learning.I got below error when i trying to connect the backend.

**Error:

return self.load_assets()
File "/home/vicki/chatapp/venv/lib/python3.10/site-packages/webpack_loader/loader.py", line 29, in load_assets
raise IOError(
OSError: Error reading /home/vicki/chatapp/vicki_chat/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?
ERROR 2023-07-14 00:32:35,527 log 6564 139765335713344 Internal Server Error: /
Traceback (most recent call last):
File "/home/vicki/chatapp/venv/lib/python3.10/site-packages/webpack_loader/loader.py", line 26, in load_assets
with open(self.config['STATS_FILE'], encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/vicki/chatapp/vicki_chat/webpack-stats.json'
**

In browser have seen below message:
"The WebSocket is currently Closed"

I am new to web development, kindly help me out.
is this file automatically created or we need to do something?

Thanks,
vignesh M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions