Skip to content

Fix AbortError timeout in delete-outgoing-requests.js#197

Open
konard wants to merge 3 commits into
mainfrom
issue-30-f657504d
Open

Fix AbortError timeout in delete-outgoing-requests.js#197
konard wants to merge 3 commits into
mainfrom
issue-30-f657504d

Conversation

@konard
Copy link
Copy Markdown
Owner

@konard konard commented Oct 17, 2025

Summary

Fixed the AbortError: The operation was aborted timeout issue in delete-outgoing-requests.js by increasing the VK API timeout configuration.

Problem

When running node delete-requests.js 250, the script would fail with an AbortError because the default API timeout (10 seconds) was insufficient for operations involving many API calls to delete friend requests.

Solution

Increased the apiTimeout parameter from the default 10 seconds to 60 seconds when initializing the VK instance in delete-outgoing-requests.js:5.

Changes

  • Modified delete-outgoing-requests.js to include apiTimeout: 60000 (60 seconds) in the VK constructor options

Technical Details

  • The vk-io library uses a default apiTimeout of 10000ms (10 seconds)
  • When processing large batches of friend requests, the cumulative time for API calls can exceed this limit
  • The new 60-second timeout provides sufficient buffer for batch operations while still preventing indefinite hangs

Fixes #30

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: undefined
@konard konard self-assigned this Oct 17, 2025
Increased apiTimeout from default 10s to 60s to prevent AbortError when
deleting large numbers of friend requests. The default 10-second timeout
was insufficient for operations involving many API calls.

Fixes #30

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] delete-requests.js: AbortError: The operation was aborted. Fix AbortError timeout in delete-outgoing-requests.js Oct 17, 2025
@konard konard marked this pull request as ready for review October 17, 2025 17:33
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.

delete-requests.js: AbortError: The operation was aborted.

1 participant