Problem:
Data retrieval in lusd_import failes with 403
This command was used
2026-01-15 16:11:43 ERROR cli._lusd_request:314 Could not retrieve LUSD data:
Investigation:
The logfile shows something llike this:
2026-01-19 11:18:19 DEBUG cli._lusd_request:318 LUSD response: status=403 reason=Forbidden headers={'Cache-Control': 'no-store,no-cache', 'Pragma': 'no-cache', 'Server': 'Kestrel', 'X-Powered-By': 'ASP.NET', 'Date': 'Mon, 19 Jan 2026 10:18:19 GMT', 'Content-Length': '0', 'Strict-Transport-Security': 'max-age=31536000; preload'} body=''
2026-01-19 11:18:19 DEBUG cli._lusd_request:325 LUSD request URL: https://ucs.whereever.de/anfrage?format=JSON
2026-01-19 11:18:19 DEBUG cli._lusd_request:326 LUSD request payload: [
{
"bezeichnung": "von der redaktion verändert",
"version": 1,
"parameter": {
"schulDienststellennummern": "1234567"
}
}
]
Solution:
One of the schools deactivated the data retrieval by mistake or on purpose. With that no import was possible anymore, for none of the schools.
See Bug 59005