Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError 가 발생합니다. #18

Open
toc2menow opened this issue Nov 16, 2023 · 0 comments
Open

JSONDecodeError 가 발생합니다. #18

toc2menow opened this issue Nov 16, 2023 · 0 comments

Comments

@toc2menow
Copy link

github action에서 grammar check v1을 사용하려고 하는데요
https://github.com/marketplace/actions/korean-grammar-check 예제와 같이 작성했지만
아래와 같은 에러가 납니다.

  Traceback (most recent call last):
    File "/korean-grammar-check-action/grammar_checker/main.py", line 144, in <module>
      check_grammar(files)
    File "/korean-grammar-check-action/grammar_checker/grammar.py", line 14, in check_grammar
      print_fixed_grammar(path)
    File "/korean-grammar-check-action/grammar_checker/grammar.py", line 29, in print_fixed_grammar
      results = spell_checker.check(contents)
    File "/korean-grammar-check-action/grammar_checker/hanspell/spell_checker.py", line 39, in check
      checked = check(item)
    File "/korean-grammar-check-action/grammar_checker/hanspell/spell_checker.py", line 63, in check
      data = json.loads(r)
    File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
      return _default_decoder.decode(s)
    File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/local/lib/python3.10/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)

hanspell쪽 응답이 바뀌었을 수도 있을것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant