tenable.sc.scan_instances.ScanResultAPI.import_scan - Error using "example"
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- api, documentation
调研方向
Start at the linked ScanResultAPI.import_scan documentation and compare its example with the working binary-mode call shown here. Confirm whether the documented example should use binary mode; done means the example no longer raises the reported TypeError.
由索引模型根据 Issue 内容生成。
描述
Description:
From SC ScanResultAPI.import_scan
using the example:
with open('example.nessus') as fobj:
sc.scan_instances.import_scan(fobj, 1)
would result in the error:
TypeError: a bytes-like object is required, not 'str'
What works:
with open('example.nessus', 'rb') as fobj:
sc.scan_instances.import_scan(fobj, 1)
To confirm:
Is this an incorrect example or a library issue?
- 主要语言
- Python
- 星标
- 416
- 派生
- 190
- 平均合并
- 3 天 20 小时
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tenable/pyTenable 的其他 Issue
-
Bug: exports.vulns() and exports.was() still send the vpr_v2_score filter, which the API removed on 2026-10-01可能已有人在做 @lanz 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 2 天内回复
-
Bug: tenable_one.attack_path.vectors.top_attack_paths_search() always fails with 403 because it calls an undocumented path可能已有人在做 @lanz 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 2 天内回复
-
Bug: exports.vulns(cve_id=...) rejects the PHP2Shell CVEs, blocking vulnerability exports filtered by CVE可能已有人在做 @lanz 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
维护者通常 2 天内回复
查看 tenable/pyTenable 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
pytest-dev/pytest-html#1085 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
pollen-robotics/reachy_mini#1527 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 66/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复