A defect on snapfitness website leading to 404 page

When I was querying nearby Gym on snapfitness website, it targeted to an HTTP 404 page. As an automation test analyst, I wrote a letter to the webmaster with analysis pointing to backend RESTful API defect and hope it will help :_)

Note that this defect only happens with snapfitness.com, another domain snapfitness247.con.nzis still working fine to return correct JSON data on POST Web API call (thru postman).


Just FYI, the defect brief description:

Reproduce Steps:

  1. Navigate from the homepage of snapfitness to “Find A Gym”
    The target URL is https://www.snapfitness.com/

  2. Insert “Lower Hutt” into the blank of “city” and click the first result of “LOWER HUTT”
    This click is redirected to https://www.snapfitness.com/lower-hutt
    However, this URL leads to 404 page.

  3. After a few seconds trying, guessing: the correct URL might be https://www.snapfitness.com/gyms/lower-hutt. This is verified.

Possible cause:

It tests(looks) like a typo in the backend JSON building in the Web API. Which is verified with Postman and the “infoWindow” data field in the JSON return from POST API to “www.snapfitness.com/gyms/getLocations” contains incorrect URL (which would be utilized to composite the click link of Gym places queried from map).

The test screenshot with postman to confirm above root cause guess.

At last, below is the raw information captured from browser during issue.

The error message on this 404 page:
404 PAGE NOT FOUND
The page you’re looking for does not exist or cannot be found at this time. If you feel you reached this page in error, please contact us at webmaster@snapfitness.com. Thank you.

Dev Code: objl-0bd08226-2ab2-4fa3-9473906225e76271

[EOF]

------ End ------