Skip to content

Watcher fails to retrieve information from several sources #261

@ludoComp9

Description

@ludoComp9

Describe the bug
Requests failed due to user-agent

To Reproduce
Steps to reproduce the behavior:

  1. See watcher logs.
    Example:
    watcher | WARNING 2026-02-03 13:30:54,296 | Feed: https://www.bleepingcomputer.com/feed/ => Error: Status code: 403
    watcher | WARNING 2026-02-03 13:30:55,027 | Feed: https://www.phishlabs.com/feed/ => Error: Status code: 403

Expected behavior
From watcher service, I can see wget https://www.bleepingcomputer.com/feed/is forbidden (error code 403)

wget https://www.bleepingcomputer.com/
--2026-02-03 13:38:00--  https://www.bleepingcomputer.com/
Resolving www.bleepingcomputer.com (www.bleepingcomputer.com)... 172.66.135.165, 172.66.139.132
Connecting to www.bleepingcomputer.com (www.bleepingcomputer.com)|172.66.135.165|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2026-02-03 13:38:01 ERROR 403: Forbidden.

But, with a user-agent defined, it works:

get --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64)" https://www.bleepingcomputer.com/
--2026-02-03 13:37:39--  https://www.bleepingcomputer.com/
Resolving www.bleepingcomputer.com (www.bleepingcomputer.com)... 172.66.135.165, 172.66.139.132
Connecting to www.bleepingcomputer.com (www.bleepingcomputer.com)|172.66.135.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html                                       [ <=>                                                                                        ] 113.61K  --.-KB/s    in 0.09s   

2026-02-03 13:37:39 (1.17 MB/s) - ‘index.html’ saved [116334]

Desktop (please complete the following information):

  • OS: Debian 12 bookworm
  • Watcher version: 3.2.2
  • Watcher mode: docker

Additional context
How we could specify a user agent in remote requests to hope to retrieve information from all / almost all remote sites ?

Regards,

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions