The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
7cebff832d5f1b98bc9b4b33ba0768aa86ef577c / Ash Berlin-Taylor <[email protected]>
Don't log "403" from worker serve-logs as "Unknown error". (#37933)

If you make a request to `http://localhost:8793/` it would get denied
from this block on L82:

```python
            auth = request.headers.get("Authorization")
            if auth is None:
                logger.warning("The Authorization header is missing: %s.", 
request.headers)
                abort(403)
``

abort is internally implemented to raise an exception. However since
that `abort()` call was inside a try/except block, it was getting caught
under the `execpt Exception:` fallback and running this:

```
        except Exception:
            logger.warning("Unknown error", exc_info=True)
            abort(403)
```

So nothing was wrong with the behaviour (it still 403d the request),
it's just the logs were slightly confusing.

Report URL: https://github.com/apache/airflow/actions/runs/8196074512

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to