TabbyML / tabby

Self-hosted AI coding assistant
https://tabby.tabbyml.com/
Other
21.35k stars 959 forks source link

Error request aborting #1770

Open arasea2 opened 6 months ago

arasea2 commented 6 months ago

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 commented 6 months ago

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.