log doesn't send messages from browser when payload is bigger than 64kB
jeetiss opened this issue · 4 comments
I setup axiom
integration for my next-js project deployed to vercel as described in documentation
I try to log errors from my frontend app with provided log.error
function and for some reason, all errors are stuck in a pending state.
Would you know why this happened and how I can fix it?
repo with project: https://github.com/jeetiss/react-pdf-experiments
I found what is causing the problem:
- I tried to log fields bigger than 64kB
log
usenavigator.sendBeacon
in the browsersendBeacon
has size limits and doesn't send anything when the message size is bigger than 64kB
hi @jeetiss , thanks for reaching out and filing a bug. great find by the way. one possible solution is that we fallback to fetch if sendBeacon fails. I am on it.
@jeetiss sorry for my late reply, this was actually implemented since my last comment but we haven't had a new release yet. A new version of next-axiom will be released next week and this change will ship with it.