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

"POST" -- 404 (Not Found) Axiom logging error #173

Open
kevinrajgor opened this issue Nov 17, 2023 · 3 comments
Open

"POST" -- 404 (Not Found) Axiom logging error #173

kevinrajgor opened this issue Nov 17, 2023 · 3 comments

Comments

@kevinrajgor
Copy link

Hello I am facing a 404 not found error while sending logs through my next js app to the axiom.
"next": "^13.4.10", "next-axiom": "^1.1.0",
These are the versions in use. facing the issue in local environment - http://localhost:3000/en/_axiom/logs (404 Not Found)

Screenshot from 2023-11-17 09-59-17
Screenshot from 2023-11-17 10-00-20
image

@kevinrajgor
Copy link
Author

Found the mistake, the middleware wasnt accepting the requests with _axiom instead was by default adding url+{localLanguage}/_axiom/logs which was an incorrect url to send the logs to.

now the logs are successfully being sent to url/_axiom/logs

@lhguerra
Copy link

I think a mention in the docs would be nice, unfortunately the internationalization in app router brakes everything :/

@Luzefiru
Copy link
Contributor

Found the mistake, the middleware wasnt accepting the requests with _axiom instead was by default adding url+{localLanguage}/_axiom/logs which was an incorrect url to send the logs to.

Up! Ran into the same issue and this was the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants