Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(worker): move exception handling from the worker #1734

Merged

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito changed the base branch from main to feat/standard-api September 12, 2023 20:12
@kettanaito
Copy link
Member Author

Hey, @thepassle 👋 I'm following up on our discussion in #1683 to remove the error handling from the worker. Could you give this change a try to see if it works as expected? Thanks.

@@ -87,7 +87,6 @@ self.addEventListener('message', async function (event) {

self.addEventListener('fetch', function (event) {
const { request } = event
const accept = request.headers.get('accept') || ''
Copy link
Member Author

Choose a reason for hiding this comment

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

Unused accept variable.

@thepassle
Copy link
Contributor

Hey, @thepassle 👋 I'm following up on our discussion in #1683 to remove the error handling from the worker. Could you give this change a try to see if it works as expected? Thanks.

Oh great, thanks! In which rc version is this?

@kettanaito
Copy link
Member Author

@thepassle, it's not released anywhere yet as I need to check some local tests. You can try it out from the PR directly.

@thepassle
Copy link
Contributor

Tried this out locally, this seems to work fine for me :)

LGTM 👍

@kettanaito
Copy link
Member Author

Thank you! I will look into the tests that timeout locally for me for some reason and get this merged sometime this week.

@kettanaito kettanaito marked this pull request as ready for review September 16, 2023 13:33
@kettanaito kettanaito merged commit 91989df into feat/standard-api Sep 16, 2023
12 checks passed
@kettanaito kettanaito deleted the feat/move-exceptions-from-worker-to-main branch September 16, 2023 13:43
@kettanaito kettanaito mentioned this pull request Sep 20, 2023
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move request error message from the worker to the main thread
2 participants