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

Error request aborting #1770

Open
arasea2 opened this issue Apr 5, 2024 · 1 comment
Open

Error request aborting #1770

arasea2 opened this issue Apr 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@arasea2
Copy link

arasea2 commented Apr 5, 2024

Error Logs : {"level":20,"time":1712338878284,"pid":3465,"hostname":"araseapc","component":"TabbyAgent","client":"Visual Studio Code desktop 1.87.2, TabbyML.vscode-tabby 1.4.0","ide":{"name":"Visual Studio Code desktop","version":"1.87.2"},"tabby_plugin":{"name":"TabbyML.vscode-tabby","version":"1.4.0"},"requestId":"d715f971-b8ed-419d-8d7f-525a452cb324","error":{"type":"DOMException","message":"This operation was aborted","stack":"AbortError: This operation was aborted\n\tat Object.fetch (node:internal/deps/undici/undici:11576:11)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async a (/home/arasea/.vscode/extensions/tabbyml.vscode-tabby-1.4.0/dist/node/extension.js:17:25512)\n\tat async j0.provideCompletions (/home/arasea/.vscode/extensions/tabbyml.vscode-tabby-1.4.0/dist/node/extension.js:190:4767)\n\tat async Wl.provideInlineCompletionItems (/home/arasea/.vscode/extensions/tabbyml.vscode-tabby-1.4.0/dist/node/extension.js:203:1512)\n\tat async B.provideInlineCompletions (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:110805)","name":"AbortError","code":20,"INDEX_SIZE_ERR":1,"DOMSTRING_SIZE_ERR":2,"HIERARCHY_REQUEST_ERR":3,"WRONG_DOCUMENT_ERR":4,"INVALID_CHARACTER_ERR":5,"NO_DATA_ALLOWED_ERR":6,"NO_MODIFICATION_ALLOWED_ERR":7,"NOT_FOUND_ERR":8,"NOT_SUPPORTED_ERR":9,"INUSE_ATTRIBUTE_ERR":10,"INVALID_STATE_ERR":11,"SYNTAX_ERR":12,"INVALID_MODIFICATION_ERR":13,"NAMESPACE_ERR":14,"INVALID_ACCESS_ERR":15,"VALIDATION_ERR":16,"TYPE_MISMATCH_ERR":17,"SECURITY_ERR":18,"NETWORK_ERR":19,"ABORT_ERR":20,"URL_MISMATCH_ERR":21,"QUOTA_EXCEEDED_ERR":22,"TIMEOUT_ERR":23,"INVALID_NODE_TYPE_ERR":24,"DATA_CLONE_ERR":25},"msg":"Completion request canceled"}

@icycodes
Copy link
Member

icycodes commented Apr 7, 2024

Hi, @arasea2
It seems that this error log refers to a Completion request canceled event. It should be a debug level log and can be safely ignored, as request cancellations are expected in some cases.

The most common scenario is when the user is continuously typing, and the text change interval is slightly longer than the debounce time. The previous sent request will be canceled, and a new completion request will be sent.

As the log message may cause confusion, I will try to update the message to prevent misunderstandings.

@icycodes icycodes self-assigned this Apr 7, 2024
@wsxiaoys wsxiaoys added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels Apr 11, 2024
@wsxiaoys wsxiaoys changed the title Error request aborting [TAB-606]Error request aborting Apr 21, 2024
@wsxiaoys wsxiaoys changed the title [TAB-606]Error request aborting Error request aborting Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants