question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaptured server errors on 404

See original GitHub issue

It looks like right now the server reports 404’s on the console. Sometimes like this (http://localhost:3000/category/performance/):

An error ocurred fetching '/category/mobile-performance/':
 Error: Entity of from endpoint 'categories' with slug 'mobile-performance' not found
    at Api.getIdBySlug (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/api.ts:9:227)
    at process._tickCallback (internal/process/next_tick.js:68:7)

and sometimes like this (http://localhost:3000/page/8):

An error ocurred fetching '/':
 TypeError: Cannot destructure property `id` of 'undefined' or 'null'.
    at entityList.map (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/populate.ts:6:47)
    at Array.map (<anonymous>)
    at populate (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/populate.ts:6:43)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DAreRodzcommented, Jul 29, 2019

Yeah, well, most cases are expected to return with a 404 page but not all of them (for example, when the server returns a 500 error). And it would also be nice if the error messages were more descriptive for developers.

We have to think of a good way to handle errors.

0reactions
luisherranzcommented, Mar 27, 2020

Closed as this doesn’t seem to be an issue anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript returning 404 error and uncaught reference
js not loaded or not found on your server. Do you have main.js . As mentioned in the docs: data-main attribute tells require.js...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
Read more >
404 Not Found Error: What It Is and How to Fix It - Airbrake Blog
The 404 Not Found Error is an HTTP response status code, which indicates that the requested resource could not be found. Like most...
Read more >
Website Hanging – Error 404 and 500 on Admin Page
htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file...
Read more >
Solved: 404 - The requested resource cannot be found. The...
Already tried using LOCALHOST inside the server, but same errors show. ... CI\svc_qliksensedev Almost uncaught exception caught in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found