Skip to content

Adds more information to script will never generate a response errors#2239

Open
mikenomitch wants to merge 1 commit into
cloudflare:mainfrom
mikenomitch:adds-info-to-swngar-error-log
Open

Adds more information to script will never generate a response errors#2239
mikenomitch wants to merge 1 commit into
cloudflare:mainfrom
mikenomitch:adds-info-to-swngar-error-log

Conversation

@mikenomitch

Copy link
Copy Markdown

Adds a bit more information to the logs for "script will never generate a response" including a URL to upcoming docs.

This should only be merged after the docs changes here get in.

@mikenomitch mikenomitch requested review from a team as code owners June 7, 2024 23:45
@mikenomitch mikenomitch requested review from garrettgu10 and tewaro June 7, 2024 23:45
@github-actions

github-actions Bot commented Jun 7, 2024

Copy link
Copy Markdown

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

Comment thread src/workerd/io/io-context.c++
@mikenomitch

Copy link
Copy Markdown
Author

@jasnell bumping this for re-review now that the URL I added is up?

@jasnell jasnell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but let's have an internal pr that pulls this in and verifies than none of the internal tests are depending on the old error message.


static constexpr auto scriptWillNeverGenerateResponseErr =
"The script will never generate a response. Request response relies on "
"a Promise that will never be resolved during the Request's lifetime. "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of developers don't even really know what a Promise is.

Maybe the language should be something like:

The runtime has detected that this request will hang forever, so the request has been canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants