Closed eecavanna closed 1 month ago
Seems like a simple potential fix to use request.headers.get("user-agent", "")
or request.headers.get("user-agent")
depending on what you want your default to be.
@eecavanna let me know if I can help nudge someone to review this so it can be closed by tomorrow.
Thanks! Hi @shreddd, I created a PR containing a change that, if merged, would fix this issue. The PR is linked above. I will message you on Slack about reviewing it/merging it in.
Offending line of code:
https://github.com/microbiomedata/nmdc-runtime/blob/fb9131649f0d6ab70e7b1f105b569837afa63d17/nmdc_runtime/api/analytics.py#L56
Example server log:
Opinion: