ampproject / ampproject/amp-toolbox

toolbox-linter fails to extract correct image URL

Open
#511 2 comments 0 reactions 1 assignee Claimed by @ithinkihaveacat View on GitHub
bug toolbox-linter
Dominant language
HTML
Stars
459
Forks
242
PR merge metrics
No merged PRs in 30d

Description

toolbox-linter falsely complains about invalid image URLs for [this page](https://www.topspeed.com/cars/car-news/ever-wondered-what-a-honda-powered-600-horsepower-race-car-looks-like-ar186625.amp.html).

```
amp lint https://www.topspeed.com/cars/car-news/ever-wondered-what-a-honda-powered-600-horsepower-race-car-looks-like-ar186625.amp.html
```

Will result in:

```
PASS 1x1 images are specified by

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/images/2015/logo_amp.png] returned status 403

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [undefined] {}

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-12_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-12_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-2-2_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-2-2_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-5_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-5_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-13_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-13_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-30_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-30_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201410/ats-sport-490-strada-6_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201410/ats-sport-490-strada-6_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-4_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-4_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-5_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-5_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-13_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-13_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-17_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-17_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-22_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-22_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-9_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-9_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-32_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-32_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-28_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-28_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-34_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-34_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-33_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-33_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-31_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-31_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-30_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-30_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-29_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-29_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-27_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-27_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-26_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-26_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-25_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-25_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-24_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-24_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-23_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-23_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-21_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-21_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-20_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-20_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-19_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-19_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-18_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-18_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-16_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-16_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-15_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-15_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-14-14_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-14-14_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-14_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-14_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-12_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-12_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-11_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-11_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-10_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-10_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-8_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-8_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-6-2_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-6-2_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-6_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-6_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-3_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-3_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-2-2_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-2-2_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201909/ever-wondered-what-a-2_180x130.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201909/ever-wondered-what-a-2_180x130w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/200603/2004-koenigsegg-ccr-13_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/200603/2004-koenigsegg-ccr-13_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201905/the-ferrari-sf90-str-66_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201905/the-ferrari-sf90-str-66_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201410/tecnica-lavinia-18_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201410/tecnica-lavinia-18_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/200909/2010-mercedes-benz-sls-am-20_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/200909/2010-mercedes-benz-sls-am-20_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201808/jeep-wrangler-moab-e-2_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201808/jeep-wrangler-moab-e-2_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201903/volvo-xc90-2_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201903/volvo-xc90-2_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201812/2019-mazda3-25_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201812/2019-mazda3-25_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201812/2019-honda-passport-2_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201812/2019-honda-passport-2_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201711/ats-gt-supercar-5_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201711/ats-gt-supercar-5_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201807/2022-alfa-romeo-8c_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201807/2022-alfa-romeo-8c_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201705/ford-mustang-shelby--4_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201705/ford-mustang-shelby--4_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201708/2019-toyota-supra_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201708/2019-toyota-supra_400x266w.jpg] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop_webp/201808/the-best-2019-luxury-2_400x266.webp] returned status 403

FAIL All have reasonable width and height
> [https://pictures.topspeed.com/IMG/crop/201808/the-best-2019-luxury-2_400x266w.jpg] returned status 403

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.