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

Language tests failing #549

Open
kavitharaju opened this issue Apr 26, 2023 · 2 comments
Open

Language tests failing #549

kavitharaju opened this issue Apr 26, 2023 · 2 comments

Comments

@kavitharaju
Copy link
Collaborator

Getting this error for languages tests

raise ConnectionError(e, request=request)
E           requests.exceptions.ConnectionError: HTTPSConnectionPool(host='schneegans.de', port=443): Max retries exceeded with url: /lv/?tags=X-AAJ&format=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe98b721540>: Failed to establish a new connection: [Errno -2] Name or service not known'))

This might be the third party website we are using for bcp-47 tag validation.

@sijumoncy
Copy link

IETF language tag as specified by BCP 47 have regex for validation as per the scripture burrito documentation.
^(((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+))$

Document link for more reference : https://docs.burrito.bible/en/latest/schema_docs/common.html#common-definitions

@kavitharaju
Copy link
Collaborator Author

This issue seems to have disappeared now. probably the third party web service fixed it. but still worth moving to using the above regex.

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

2 participants