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

Head commit for run:
76060f01de1e4327a29ea12ece6bbdfe4e7e1e1d / Ash Berlin-Taylor <[email protected]>
Don't log "403" from worker serve-logs as "Unknown error".

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/8171210597

With regards,
GitHub Actions via GitBox


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

Reply via email to