We’re attempting to arrange an affiliation file for a web site that did not have it earlier than.
We have uploaded the file to https://www.our-website.com/.well-known/apple-app-site-association
(as urged within the documentation). Sadly, it did not work, the hyperlinks nonetheless open within the browser as a substitute of our app and we won’t appear to determine why.
We tried querying the Apple CDN, and for some cause it returns 404:
$ curl -v https://app-site-association.cdn-apple.com/a/v1/www.our-website.com
>
< HTTP/2 404
< apple-failure-details: {"trigger":"invalid character 'u003c' searching for starting of worth"}
< apple-failure-reason: SWCERR00401 Unhealthy JSON content material
< apple-from: https://www.our-website.com/.well-known/apple-app-site-association
< apple-try-direct: false
< cache-control: max-age=3600,public
< content-type: textual content/plain; charset=utf-8
< through: https/1.1 dkvib1-3p-pst-001.ts.apple.com (acdn/153.14426), http/1.1 dkvib1-3p-pac-001.ts.apple.com (acdn/153.14426), https/1.1 dkvib1-3p-pfe-002.ts.apple.com (acdn/153.14426), 1.1 varnish
< cdnuuid: 1741f0c3-efb3-42fa-b574-ae3bfebb13f6-333001418
< expires: Fri, 24 Might 2024 10:43:27 GMT
< accept-ranges: bytes
< age: 1693
< date: Fri, 24 Might 2024 11:11:25 GMT
< x-cdn: fsly
< x-served-by: cache-bma1670-BMA
< x-cache: hit-stale, hit-fresh, hit-stale, HIT
< x-cache-hits: 0
< x-timer: S1716549085.460891,VS0,VE1
< content-length: 10
<
Not Discovered
Requesting the affiliation file straight returns 200 although (we tried from completely different networks, all works effective):
$ https://www.our-website.com/.well-known/apple-app-site-association
< HTTP/2 200
< date: Fri, 24 Might 2024 11:03:15 GMT
< content-type: software/json; charset=utf-8
< content-length: 200
< cache-control: no-store
< x-varnish-director: sports_web_pro
< fluctuate: Settle for-Encoding,Person-Agent
< x-cache: MISS
< x-age: 0
< age: 0
< accept-ranges: bytes
<
(json content material right here)
In line with AASA validator, all is sweet:
It has been a number of days already, so this most likely is not a caching subject. Beforehand we additionally tried internet hosting the file at https://www.our-website.com/apple-app-site-association
however the consequence was the identical.
Unusually, the diagnostic software on iPhone (in Settings > Developer) experiences that every one is A-OK:
That is all completely complicated, particularly the failure message: {"trigger":"invalid character 'u003c' searching for starting of worth"}
. Is the CDN bot attempting to parse the physique even after receiving 404?
Anybody has any concepts?