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

I got this error when doing Empty recycle bin or Delete Permanently in the trash. I have upgraded Panel to the latest version with bt 16. But the error cannot be resolved. Please assist me.

Traceback (most recent call last):
  File "/www/server/panel/BTPanel/__init__.py", line 2520, in publicObject
    return run_exec().run(toObject, defs, get)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/BTPanel/__init__.py", line 2466, in run
    result = getattr(toObject, get.action)(get)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/class/files.py", line 1277, in Del_Recycle_bin
    return database.database().DeleteTo(filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/class/database.py", line 716, in DeleteTo
    data = json.loads(public.readFile(filename + '/config.json'))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/pyenv/lib/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/pyenv/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/www/server/panel/pyenv/lib/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    Hello, is it possible to manually delete files by using ssh to the recycle bin directory?

    cd /.Recycle_bin/ 
    ls -alh
    rm wordpresstest

    dotrungquan

      Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com