-
Notifications
You must be signed in to change notification settings - Fork 1
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
SPECIAL-14044: Исправление issues #19
Conversation
… Утилита для проверки на соответствие типу ошибки от ВК
src/isVkError.ts
Outdated
@@ -0,0 +1,42 @@ | |||
import { ErrorData } from '@vkontakte/vk-bridge'; | |||
|
|||
const vkErrorTypes = new Set<ErrorData['error_type']>([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мб типы вынести? или тоже сделать экспорт, вдруг понадобятся
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вынес src/consts.ts
src/checkVkUserDenied.ts
Outdated
} = error; | ||
|
||
return error_code === 4 && userDeniedReasons.has(error_reason); | ||
return userDeniedReasons.has(error.error_data.error_reason); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может сделать тут const userDeniedCodes = [4, 10007]
и return userDeniedReasons.has(error.error_data.error_reason) || return userDeniedCodes.has(error.error_data.error_code);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде пришли в чате к выводу, что на 10007 вообще лучше не закладываться и проверять на "4 ИЛИ причину ошибки". Так и сделал
Переназначил целевую ветку с master на release-3.0.0 для подготовки отдельной ветки для релиза 3.0.0. На момент написания коммента, ветка release-3.0.0 является копией ветки master с влитым в неё PR "v3.0.0: Удаление записи полей с параметрами приложения в window" |
Обновлено:
Новое: