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

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

Open
mvicki93 opened this issue Jul 14, 2023 · 0 comments

Comments

@mvicki93
Copy link

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

@mvicki93 mvicki93 changed the title Got following when I trying to connect backend Errror web-stats.json file not found error Got following Errror web-stats.json file not found error when I trying to connect backend . Jul 14, 2023
@mvicki93 mvicki93 changed the title Got following Errror web-stats.json file not found error when I trying to connect backend . Got following Errror "web-stats.json file not found error" when I trying to connect backend . Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant