Giter Site home page Giter Site logo

nextjs-with-honeybadger's Issues

Server-side source maps

We currently support client-side source maps, but not server-side. Since honeybadger.js is now universal, I'd like to be able to support server-side source maps. Adding this issue here since Next.js is where this feature is most requested.

Server-side exceptions are not recorded when deployed to Vercel

When I deploy to Vercel, I can't get server-side errors to show up in Honeybadger. All the server pages give me a 404. The Vercel log looks like this:
Screen Shot 2022-12-28 at 10 49 57 AM
So it appears that the function is getting called and erroring as I'd expect (500) but then displaying a 404. I don't yet understand why the "Edge Status" differs from the "Function Status".

I did confirm that there's nothing wrong with the routing, by adding another page within the /server folder that does not throw an error. That page loads fine on Vercel, so it's definitely related to error handling and not a true 404.

_error.js is getting called, however it's getting called for the 404, not the 500. The err object is null.
Screen Shot 2022-12-29 at 9 55 36 AM

Based on comments from @subzero10 I do not think these Vercel issues are new.

Unexpected unhandled promise rejections

This issue relates to the universal branch of nextjs-with-honeybadger and the current 3.0.0-alpha release of honeybadger-js.

Steps to reproduce:

You will need to sign up for a free Honeybadger.io account to get an API key: https://www.honeybadger.io/plans/

  1. git clone [email protected]:honeybadger-io/nextjs-with-honeybadger.git
  2. cd nextjs-with-honeybadger && git checkout universal
  3. npm install
  4. HONEYBADGER_API_KEY=key npm run build
  5. npm run start
  6. Visit http://localhost:3000/
  7. Click the first "Perform client side navigation" under "Client exceptions" to generate the error "Client Test 1". (other errors have this issue too, however)

Expected result: a single "Client Test 1" error is reported to Honeybadger.

Actual result: the first expected error is reported, but an "UnhandledPromiseRejectionWarning" error is also reported.

image

I want to understand why these duplicate reports are happening and what the idiomatic Next.js solution is. Happy to answer any questions you may have. If this is something that you can debug, email me with your hourly rate and anything else I should know about your work (josh at honeybadger.io). Thanks!

Nextjs server side rendering deployed on custom server

We deploy the app not in Vercel but in our own custom server. I tried your project and i saw that server side source maps still don't work. I checked the issue and the solutions suggested there, but it seems that it doesn't work

Also it seems that for client error handling to work properly NEXT_PUBLIC_HONEYBADGER_API_KEY should be set instead of HONEYBADGER_API_KEY. Otherwise [Honeybadger] Unable to send error report: no API key has been configured is being displayed in console

App directory support

A few days ago, nextJS set app directory as stable version. Currently honeybadger is not working properly with this. Will you update it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.