This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
API changed? #196
Comments
I'm also getting Status code: 307 with 9.1.0 ➜ pre-commit run yaspeller --files
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/compilerla/conventional-pre-commit.
[INFO] Initializing environment for https://github.com/DavidAnson/markdownlint-cli2.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier,prettier-plugin-nginx,prettier-plugin-sh,prettier-plugin-toml.
[INFO] Initializing environment for https://github.com/hcodes/yaspeller.git.
[INFO] Installing environment for https://github.com/hcodes/yaspeller.git.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
yaspeller................................................................Failed
- hook id: yaspeller
- exit code: 2
Spelling check:
(node:2944630) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Checking finished: 1.171 sec.
Spelling check:
(node:2944631) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Checking finished: 1.329 sec.
Spelling check:
(node:2944632) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Checking finished: 0.467 sec.
|
Single file scan: yaspeller README.md
Spelling check:
Yandex.Speller API:
-------------------
Status code: 307
Response:
JSON.parse(Response): SyntaxError: Unexpected end of JSON input
Checking finished: 0.607 sec.
|
+1 |
2 similar comments
+1 |
+1 |
+1 |
1 similar comment
+1 |
Написал в поддержку Яндекса, получил ответ:
|
Тут два варианта:
Попробую перевести утилиту на новое API, а дальше будет видно что делать с проектом. |
v10.0.0 Переключил на новое API Яндекс Спеллера, точнее с устаревшего на старое. Из четырёх опций работает только одна. Русскоязычные ссылки не игнорируются. Это issue закрываю, на найденные баги, пожалуйста, заводите отдельные issue. |
Спасибо за оперативное решение! :) |
This was referenced Nov 16, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all, thanks for the app!
A couple of days ago I've encountered the following problem:
Seems like yandex has changed their API? Or do they now expect only JSONs, but the app sends plain text? Unfortunately I'm not familiar neither with the yandex spell checking API nor with nodejs, so I can't end up with any useful hints :(
The text was updated successfully, but these errors were encountered: