Hi guys, something really weird is happening. I have a function to read a JSON to POST it to a database (Mongo DB). The JSON file has some keys like "$text", which starts with the "$" symbol. Now, this can't work on Mongo, so I did a recursive function that goes deep into the JSON, and remove every "$" symbol encountered.
Now, this works like a charm from Local Host. I'm able to save the JSON in Mongo with the "$" symbols removed. When I run the code in PythonAnywhere it doesn't work. This is crazy. It is exactly the same code!
I use PythonAnywhere and Mongo with no problems for weeks. Why am I failing here?