Skip to content

-s flag: malformed JSON sent to receivers when Geekbench scores are empty #127

@markovic-nikola

Description

@markovic-nikola

Hello and thanks for your hard work on this project.

Summary

When YABS is run with -s <url> and the Geekbench score variables happen to be empty YABS POSTs invalid JSON to the receiver endpoint. Strict JSON parsers (PHP json_decode, Python json.loads, etc.) reject the body.

Reproduction

I ran on a Debian 13 VPS curl -sL https://yabs.sh | bash -s -- -j -w /tmp/yabs.json -s "https://example.com/yabs/upload"

Validate the written JSON:
python3 -m json.tool < /tmp/yabs.json > /dev/null
Error: Expecting value: line 1 column 2115 (char 2114)

The geekbench section in the produced JSON is:
"geekbench":[{"version":6,"single":,"multi":,"url":"https://browser.geekbench.com/v6/cpu/123456"}]
"single":,"multi":, is invalid - JSON requires a value (e.g. null) after each colon.

Environment

  • YABS version: v2026-04-29
  • VPS: DigitalOcean, Debian 13, 4 GB RAM, 2 vCPU
  • Default Geekbench 6 (no -4/-5 flag)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions