Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch API requests are ignored if User-Agent is empty #3337

Open
astappiev opened this issue Mar 31, 2025 · 0 comments
Open

batch API requests are ignored if User-Agent is empty #3337

astappiev opened this issue Mar 31, 2025 · 0 comments
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@astappiev
Copy link

Describe the Bug

After the introduction of batch event submission, I wanted to try it inside https://github.com/astappiev/traefik-umami-plugin
But unfortunately, I met an error that blocked me from further processing.

I received seems-to-be expected response {"size":1,"processed":1,"errors":0,"details":[]}, however no events were added.
After a few hours spent trying different approaches, I submitted the same payload via send method and realized that it's simply {beep: 'boop'}.

So, yes, my client's user-agent is empty, and it bounces immediately at the beginning of the send processing, despite that I use userAgent as a property of event's payload.

Things that would be nice to address:

  • The requester User-Agent header is empty, but userAgent is provided inside the request body.
  • I still would like individual events to be checked for bots and ignored if so.
  • Maybe improve batch output, e.g. return number of ignored events.

Database

PostgreSQL

Relevant log output

Which Umami version are you using? (if relevant)

2.17.0

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@mikecao mikecao added bug Something isn't working fixed in dev Fixed in the dev branch labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

2 participants