Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

URL doesn't match the fetch targets #95

@juangodPerlego

Description

@juangodPerlego

Hello, I am getting the following issue when sending a request to the webpkgserver:

2021/09/17 16:29:24 Listening at [::]:80
2021/09/17 16:29:24 Successfully retrieved valid OCSP.
2021/09/17 16:29:26 processing https://www.perlego.com/book/1690290/criminal-law-pdf ...
2021/09/17 16:29:26 error with processing https://www.perlego.com/book/1690290/criminal-law-pdf: fetch: URL doesn't match the fetch targets

This is the webpkgserver.toml file I'm using:

[Listen]
Port = 80

[SXG.Cert]
PEMFile = '/www_perlego_com.pem'
KeyFile = '/server.key'
AllowTestCert = false

[SXG]
CertURLBase = 'https://perlego.com/'

[[Sign]]
Domain = 'perlego.com'

This is how I'm sending the request:

wget -v -d --header="Accept: application/signed-exchange;v=b3" localhost/priv/doc/https://www.perlego.com/book/1690290/criminal-law-pdf

I'm confused since from reading the source code, I gather that the error URL doesn't match the fetch targets is thrown when the Domain field of the server configuration does not match the actual host of the request, but in this case I believe it does.

Thanks in advance,
Juan

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