Unexpected token error

Hello,

I am trying to debug some Python code in the AI Python for Beginners course, and I keep getting this error message:

‘<’, "<!DOCTYPE "… is not valid JSON.

I saw this was a topic previously mentioned, but someone responded and said that they were not able to reproduce the bug.

A little frustrating because I can’t debug my code with the specific chatbot. I get the error consistently.

If I ask it something else, like “Is this chatbot working?” It says it is. If I paste in my code and ask it to debug (it’s one of the exercises in the course), it gives me the error previously mentioned.

Already tried logging out and in again…

Thanks!

hi @Pandy34

you have posted your query incorrect category perhaps that’s why you are not getting response.

now comes to your error, take a screenshot of the error you have encountered, please make sure not to post any grade function codes as it is against community guidelines.

Also can you confirm if you are running codes locally or in the course provided platform.

As far as I can understand with the error you mentioned you probably using document type format instead of json type file causing the error.