Skip to content

writers/db.go:53 SQL logic error: too many SQL variables #285

@Rubyer77

Description

@Rubyer77

Describe the bug
SQL Error

writers/db.go:53 SQL logic error: too many SQL variables (1)
[21.526ms] [rows:0] INSERT INTO `network_logs` (
..........SNIP..........

writers/db.go:53 SQL logic error: too many SQL variables (1)
[40.838ms] [rows:1] INSERT INTO `results` (`url`,`probed_at`,`final_url`,`response_code`,`response_reason`,`protocol`,`content_length`,`html`,`title`,`perception_hash`,`perception_hash_group_id`,`screenshot`,`filename`,`is_pdf`,`failed`,`failed_reason`) VALUES ("https://682.run:443","2025-05-13 22:47:21.807","https://682.run/",200,"OK","http/1.1",286,"","","",0,"","",false,true,"context deadline exceeded") RETURNING `id`
2025/05/13 22:48:24 ERRO failed to write result for target target=https://682.run:443 err="SQL logic error: too many SQL variables (1)"

To Reproduce
Steps to reproduce the behavior:

echo "https://682.run:443" > urls
gowitness scan file -f urls --screenshot-path output --write-db

Expected behavior
no sql error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions