Skip to content

fix: HeidiTips fetch timeout Illegal invocation#9773

Open
TaitChan wants to merge 1 commit into
HumanSignal:developfrom
TaitChan:fix/heidi-tips-abort-invocation
Open

fix: HeidiTips fetch timeout Illegal invocation#9773
TaitChan wants to merge 1 commit into
HumanSignal:developfrom
TaitChan:fix/heidi-tips-abort-invocation

Conversation

@TaitChan

Copy link
Copy Markdown

Summary

Fix Illegal invocation when the Heidi tips live fetch timeout fires after 5 seconds.

Problem

setTimeout(abortController.abort, MAX_TIMEOUT) loses the required this binding on host methods.

Fix

setTimeout(() => abortController.abort(), MAX_TIMEOUT)

Repro

  1. Clear heidi_live_tips_collection / heidi_live_tips_collection_fetched_at in localStorage
  2. Open Home page
  3. Throttle or block /heidi-tips for >5s
  4. Console: Illegal invocation at HeidiTips/utils.ts

Test plan

  • Slow/blocked /heidi-tips — no console error after 5s
  • Normal fetch — tips still load and cache updates

Passing abortController.abort directly to setTimeout loses the required
`this` binding and throws Illegal invocation when the 5s timeout fires
while /heidi-tips is still pending.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

👷 Deploy request for heartex-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7f61c6d

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

👷 Deploy request for label-studio-docs-new-theme pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7f61c6d

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 7f61c6d
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a2f6374ef8d870007925f13
😎 Deploy Preview https://deploy-preview-9773--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 7f61c6d
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a2f6374e5ec1f0008b13af6
😎 Deploy Preview https://deploy-preview-9773--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the fix label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant