OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: grep throw error:agfs got an unexpected keyword argument 'node_limit'

Open yeshion23333 opened this issue 8 months ago • 2 comments

Bug Description

when using grep:

File "/Users/bytedance/work/space/OpenViking/openviking/service/fs_service.py", line 169, in grep return await viking_fs.grep( ^^^^^^^^^^^^^^^^^^^^^ uri, pattern, case_insensitive=case_insensitive, node_limit=node_limit, ctx=ctx ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/Users/bytedance/work/space/OpenViking/openviking/storage/viking_fs.py", line 309, in grep result = self.agfs.grep( path, pattern, True, case_insensitive, stream=False, node_limit=node_limit ) TypeError: AGFSClient.grep() got an unexpected keyword argument 'node_limit'

Steps to Reproduce

using grep

Expected Behavior

success

Actual Behavior

throw error

Minimal Reproducible Example


Error Logs


OpenViking Version

branch main

Python Version

3.13

Operating System

macOS

Model Backend

None

Additional Context

No response

yeshion23333 avatar Mar 05 '26 09:03 yeshion23333

temporary solution: Switch to HTTP mode: Set storage.agfs.mode = "http-client" in your ov.conf and ensure an agfs-server is running.

yeshion23333 avatar Mar 05 '26 11:03 yeshion23333

https://github.com/volcengine/OpenViking/pull/474 solved this.

MaojiaSheng avatar Mar 07 '26 17:03 MaojiaSheng