Wudao-dict icon indicating copy to clipboard operation
Wudao-dict copied to clipboard

Error: Traceback (most recent call last)

Open laraws opened this issue 3 years ago • 3 comments

When I ran the wd command to get English translation from Chinese input, ther error displayed below:

➜  ~ wd 符号
Traceback (most recent call last):
  File "WudaoCommand.py", line 195, in <module>
    main()
  File "WudaoCommand.py", line 191, in main
    app.query(app.word)
  File "WudaoCommand.py", line 105, in query
    word_info = json.loads(server_context)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/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)

Why didn't this happen? How to solve it?

laraws avatar Aug 05 '21 07:08 laraws

使用""将汉字括起来

Syize avatar Sep 12 '21 11:09 Syize

使用""将汉字括起来

I have tried it and it outputted the same error.

laraws avatar Sep 13 '21 03:09 laraws

I tried, only 符号 could replicate this error, it's a bug. If you find other words, please contact me

ChestnutHeng avatar Oct 26 '21 03:10 ChestnutHeng