amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

validator.js 404s if dev-channel cookie is turned on

Open ithinkihaveacat opened this issue 8 years ago • 5 comments

How do we reproduce the issue?

Either via https://cdn.ampproject.org/experiments.html or the command-line:

$ curl -s -i -H 'cookie: AMP_CANARY=1;' 'https://cdn.ampproject.org/v0/validator.js' | head -1
HTTP/2 404 # not expected
$ curl -s -i 'https://cdn.ampproject.org/v0/validator.js' | head -1
HTTP/2 200 # expected

(experiments.js also seems to be affected in the same way.)

/cc @Gregable

ithinkihaveacat avatar Aug 15 '18 13:08 ithinkihaveacat

/to @erwinmombay same thing happens with validator.js as well. let's treat as P0 since after enabling DevChannel one can not undo it.

aghassemi avatar Aug 15 '18 16:08 aghassemi

In terms of impact, if dev channel is turned on, this bug means you can't use:

  • https://validator.ampproject.org/ (it attempts to load validator.js, which 404s)
  • https://cdn.ampproject.org/experiments.html (can't disable experiments, or inspect state, since experiments.js can't be loaded)
  • https://chrome.google.com/webstore/detail/amp-validator/nmoffdblmcmgeicmolmhobpoocbbmknc?hl=en (validator.js can't be loaded)

ithinkihaveacat avatar Aug 15 '18 16:08 ithinkihaveacat

It's the new diversion updates. /cc @jgluk

jridgewell avatar Aug 15 '18 17:08 jridgewell

Rollback submitted, should be fixed within an hour. Sorry folks!

jgluk avatar Aug 15 '18 18:08 jgluk

Fix is live.

jridgewell avatar Aug 15 '18 19:08 jridgewell