Fix unhandled exception on blockResources#778
Open
turicas wants to merge 2 commits intoprerender:masterfrom
Open
Fix unhandled exception on blockResources#778turicas wants to merge 2 commits intoprerender:masterfrom
turicas wants to merge 2 commits intoprerender:masterfrom
Conversation
turicas
added a commit
to PythonicCafe/dokku-prerender
that referenced
this pull request
Feb 24, 2024
More details at prerender/prerender#778
There's an error if a bot tries to access, for example: https://example.com/font.woff2 The only request the browser would do will be blocked and the client will receive a 504 error.
Author
|
Added a commit to fix another issue in this very same plugin: I got 504 errors when Googlebot was trying to access a Sample log before the fix: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello! After running a custom
server.jswith many plugins enabled, I've got an exception and the server just died, as you can see in the logs below:Upon investigating, I identified that the exception was caused by the
Network.continueInterceptedRequestcall inplugins/blockResources.js. To prevent the server from crashing, I added acatchto just log the exception. Logs after the change:...and the server did not die. :)
While this prevents server crashes, I'm unsure if further changes are needed to address the root cause of the exception.