Skip to content

Fails with "Page Not Found" when Base URL is HTTPS #50

@SylvainGlobalia

Description

@SylvainGlobalia

Bug Report

I am experiencing an issue where Craft Sherlock fails to connect to the site's own Base URL when running the check, resulting in a

Not Found: Unable to connect to ... Please ensure that the site is reachable and that the system is turned on.

I think it's the TestsService.php file, line "$response = $this->client->get($this->siteUrl);"
Maybe the failing call originates in Guzzle's request() method, as the plugin attempts to fetch content from the primary site URL.

Environment Details
Plugin: Craft Sherlock (Using commit 8e11c05 temporarily)
Craft CMS: 5.7.10 Pro
PHP: 8.2.28

Base URL: https://stage.jsheld.com/ (Confirmed via Settings -> Sites)

Steps to Reproduce
Navigate to the Sherlock utility page in the Craft Control Panel.

Execute the Sherlock checks.

Observed Behavior
The check that performs an internal Guzzle request to the site's own Base URL (e.g., to https://stage.jsheld.com/) fails with the following message:

Page Not Found
Unable to connect to "https://stage.jsheld.com/". Please ensure that the site is reachable and that the system is turned on.

Verification
We have verified that the server can successfully connect to the public URL using curl from the command line.

Image

Plugin Version

5.2.0 Using commit 8e11c05 temporarily

Craft CMS Version

5.7.10

PHP Version

8.2.28

Metadata

Metadata

Assignees

No one assigned

    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