Relative Content

Tag Archive for django-forms

syntax unexpected token Doctype is not valid json

I am coding a flash app with Django I added code to enable text to speech so that the flashcards both question and answer can be read out aloud I have installed pyttsx3 2.90. when pressing the button that is greyed out nothing happens on inspecting the network element I get get this error when pressing the text to speech button 22/:559
Error:
SyntaxError: Unexpected token ‘<‘, “<!DOCTYPE “… is not valid JSON
(anonymous) @ 22/:559
Promise.catch (async)
toggleTextToSpeech @ 22/:558
(anonymous) @ 22/:565