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

404 on _axiom/logs and _axiom/web-vitals #91

Closed
reubenjh opened this issue Dec 20, 2022 · 2 comments
Closed

404 on _axiom/logs and _axiom/web-vitals #91

reubenjh opened this issue Dec 20, 2022 · 2 comments

Comments

@reubenjh
Copy link

reubenjh commented Dec 20, 2022

Hi there, i'm trying to set this up in a standard vercel project using the integration, and in my production deployment I get 404's on both the /logs and /web-vitals requests from my frontend.

Screenshot 2022-12-20 at 10 43 37 PM

Looks like axiom has spun up some lambdas in my project but my build output doesnt show them.

Screenshot 2022-12-20 at 10 43 53 PM

A look at the log stream for the apis shows this message: INVALID_REQUEST_METHOD: This Request was not made with an accepted method, so I guess the lambda does exist it just doesnt know how to handle a post request 🤔

What have I done wrong? I've just followed the standard setup instructions from the vercel integration page.

@reubenjh
Copy link
Author

reubenjh commented Dec 21, 2022

I'm a goose, I had messed around with my next.config.js file and turned it into a .cjs extension to use require syntax, but next.js apparantly doesnt support that so it was just not seeing the withAxiom wrapper at all. My bad!

@schehata
Copy link
Collaborator

glad you figured out the problem 👍 Will close this issue, feel free to re-open if there is something we can help with.

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

2 participants