eroom.e-social.gov.az serves an incomplete certificate chain (omits the intermediate CA that signs its leaf), so Python requests raised CERTIFICATE_VERIFY_FAILED on the ƏMAS wizard/employee-load step. Browsers paper over this via AIA; requests does not. Fix without vendoring any cert into the repo: read the AIA "CA Issuers" pointer out of the live leaf, download the missing intermediate(s) straight from the issuer, and cache them outside the repo. Route all AMAS/MyGovID calls through _amas_http, which self-heals across CA rotations by re-fetching and retrying once on SSLError. SSL verification stays ON (not verify=False). Also stop leaking raw exception strings to the UI: every AMAS-facing return now logs the full traceback and shows the generic, localized "ƏMAS unavailable" message. Added az/ru translations for it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| invoice_az | ||
| test_invoice.git | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| BUGFIX_STATUS_201.md | ||
| BUGFIX_TAX_TYPE.md | ||
| BUGS_VAT_OPERATIONS.md | ||
| CLAUDE.md | ||
| IMPLEMENTATION_COMPLETE.txt | ||
| IMPLEMENTATION_SUMMARY.md | ||
| MIGRATION_GUIDE.md | ||
| PLASTIC_DISPOSAL_IMPLEMENTATION.md | ||
| PROJECT_OVERVIEW.md | ||
| QA_SEND_INVOICE.md | ||
| README.md | ||
| README_TAX_TYPE_FEATURE.md | ||
| TECHNICAL_SPEC_TAX_TYPE.md | ||
| TIRE_DISPOSAL_IMPLEMENTATION.md | ||
| USER_GUIDE_TAX_TYPE.md | ||
| classification_codes.txt | ||
| invoice asan.txt | ||
| invoice.txt | ||
| item_group_codes.txt | ||
| item_group_codes_service.txt | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Invoice Az
This application uploads and downloads invoices from e taxes gov az
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app invoice_az
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/invoice_az
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense