Skip to content
Advertisement

Django json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I’m tyring to use the django login functionality, but ever since i added the login and sign_up route, I started getting this error.

Anytime i try to access the sign_up or login route, I kept getting this error…json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

JavaScript

I don’t understand why the get_item function is interfering with the other functions. This is my views.py

JavaScript

This is my urls.py file

JavaScript

Advertisement

Answer

You are trying to load item details from the request body, but there is no body.

JavaScript

You should check to see if the body is empty

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement