Skip to content

[Bug] scoop-virustotal gives an error instead of report after release 0.5.0 #6042

@jkniiv

Description

@jkniiv

Bug Report

Current Behavior

Scoop-virustotal is not usable anymore after release 0.5.0. Instead of an VirusTotal report we get just errors. It seems some parameters have not been marshalled properly.

Expected Behavior

Scoop-virustotal should provide a VirusTotal report for any package specified.

Additional context/output

C:\Users\jkniiv> scoop virustotal eza
Property 'malicious' not valid on JArray.
Property 'suspicious' not valid on JArray.
Property 'timeout' not valid on JArray.
Property 'undetected' not valid on JArray.
WARN  main/eza: VirusTotal request failed: Cannot convert value "[1113159]" to type "System.Int32". Error: "The input string '[1113159]' was not in a correct format."
C:\Users\jkniiv> scoop info eza

Name        : eza
Description : A modern, maintained replacement for ls, built on exa.
Version     : 0.18.20 (Update to 0.18.21 available)
Bucket      : main
Website     : https://github.com/eza-community/eza
License     : MIT
Updated at  : 1.7.2024 11:28:55
Updated by  : github-actions[bot]
Installed   : 0.18.19
              0.18.20
Binaries    : eza.exe | exa.exe

C:\Users\jkniiv> scoop virustotal persepolis
Property 'malicious' not valid on JArray.
Property 'suspicious' not valid on JArray.
Property 'timeout' not valid on JArray.
Property 'undetected' not valid on JArray.
WARN  extras/persepolis: VirusTotal request failed: Cannot convert value "[115695080]" to type "System.Int32". Error: "The input string '[115695080]' was not in a correct format."
C:\Users\jkniiv> scoop virustotal doggo
Property 'malicious' not valid on JArray.
Property 'suspicious' not valid on JArray.
Property 'timeout' not valid on JArray.
Property 'undetected' not valid on JArray.
WARN  main/doggo: VirusTotal request failed: Cannot convert value "[4096151]" to type "System.Int32". Error: "The input string '[4096151]' was not in a correct format."

Possible Solution

System details

Windows version: 10 ver. 22H2 (build 19045.4529)

OS architecture: 64bit

PowerShell version: 7.4.3

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
  "virustotal_api_key": "002redacted",
  "aria2-enabled": true,
  "last_update": "2024-07-05T21:31:57.8912335+03:00",
  "scoop_repo": "https://github.com/lukesampson/scoop",
  "scoop_branch": "master"
}

Additionally, $env:SCOOP has been set to 'C:\scoop'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions