next-axiom icon indicating copy to clipboard operation
next-axiom copied to clipboard

Getting occasional 404s for _axiom/web-vitals call on PROD

Open jerang opened this issue 1 year ago • 5 comments

Noticed my production dashboard is showing a small percentage of 404 errors for the web vitals call. Any idea what's causing this and how I can patch it? I do see the web vitals working since there are a number of successful calls for most users.

Secondly, is there a way to get this call to work locally?

jerang avatar Aug 18 '22 16:08 jerang

Hey @jerang, thanks for the issue -- it's something we're aware of and looking into 👍

Secondly, is there a way to get this call to work locally?

You can copy the NEXT_PUBLIC_AXIOM_INGEST_ENDPOINT from your environment and expose it locally.

bahlo avatar Aug 26 '22 12:08 bahlo

Hi @bahlo, to prevent create a duplicated issue, I'm seeing some requests to non-existents paths like /wordpress /wp /old /new /2020 etc.

This is something related to this issue?

Thanks!

agustinl avatar Aug 29 '22 21:08 agustinl

Hi @bahlo, to prevent create a duplicated issue, I'm seeing some requests to non-existents paths like /wordpress /wp /old /new /2020 etc.

This is something related to this issue?

Thanks!

those are probably bots or web crawlers maybe trying to access those routes that don't exist on your app, I believe its not related to next-axiom.

schehata avatar Sep 08 '22 09:09 schehata

@jerang do you still see this happening?

bahlo avatar Sep 13 '22 11:09 bahlo

I am still seeing it; pulled data using query:

vercel
| where ['vercel.route'] contains "axiom" and ['request.statusCode'] != 200
| summarize count() by bin_auto(_time), ['request.host'], ['request.path']

Post requests look correct to "https://vercel-vitals.axiom.co/api/v1/send"

jerang avatar Sep 19 '22 15:09 jerang