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

JSON parse error while running #15

Closed
alexdrm98 opened this issue Jun 13, 2021 · 6 comments
Closed

JSON parse error while running #15

alexdrm98 opened this issue Jun 13, 2021 · 6 comments

Comments

@alexdrm98
Copy link

  • django_private_chat2 version: latest
  • Django version: 3.2.4
  • Python version: 3.9
  • Operating System: Linux

Description

When ever i login, i get this annoying json parse error
image

THE FULL LOG HERE: https://bpa.st/74OQ
Thank you guys!

@delneg
Copy link
Collaborator

delneg commented Jun 13, 2021

Can you please provide more info ? I didn't see anything suspicious in server logs you provided, maybe there are some errors in frontend logs ?

Also, for the sake of experiment I did clone the repository, followed the exact steps in the example/README.md file and it worked absolutely fine.

@alexdrm98
Copy link
Author

Meanwhile can I ask how can we change the background image to a white background colour?

@delneg
Copy link
Collaborator

delneg commented Jun 14, 2021

You can find css for the example app frontend in
https://github.com/Bearle/django_private_chat2/blob/master/example/frontend/src/App.css
The instructions on how to build are in the example/frontend README.
However, most of the times you'll probably want to build your own frontend.

@alexdrm98
Copy link
Author

alexdrm98 commented Jun 15, 2021

Apps only works better on 127.0.0.1:8000 and when we visit localhost:8000 it's the JSON fetch error. Also, I tried to make it work in LAN, using python manage.py runserver 0.0.0.0:8000 and access it, we get this "failed to fetch error" to the user trying to access from 192.168.43.10
Can I fix? Thanks!

@delneg
Copy link
Collaborator

delneg commented Jun 15, 2021

Please see #7

@alexdrm98
Copy link
Author

Thanks!

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

2 participants