Post

Replies

Boosts

Views

Activity

API Validation Tool "Error cannot parse app site association" on AASA file copied verbatim from documentation
I'm having a lot of problems enabling universal links for my domain and I've tried to control for all the variables I can think of. My domain is https://snag.news and the app site association is hosted at both https://snag.news/.well-known/apple-app-site-association and https://snag.news/apple-app-site-association. I verified that Safari can fetch the file and the HTTP content type is application/json. I've tried to control for as much as I can in the file, so I copied it verbatim from the Apple documentation with the only change being replacing the team ID and bundle identifier. { &#9; "applinks": { &#9;&#9;&#9;"details": [ &#9;&#9;&#9;&#9; { &#9;&#9;&#9;&#9;&#9;&#9;"appIDs": [ &#9;&#9;&#9;&#9;&#9;&#9;&#9; "B86E5YKCTK.com.Aphelion.Snag" &#9;&#9;&#9;&#9;&#9;&#9;], &#9;&#9;&#9;&#9;&#9;&#9;"components": [ &#9;&#9;&#9;&#9;&#9;&#9;&#9; { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"#": "no_universal_links", &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"exclude": true, &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link" &#9;&#9;&#9;&#9;&#9;&#9;&#9; }, &#9;&#9;&#9;&#9;&#9;&#9;&#9; { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"/": "/buy/*", &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"comment": "Matches any URL whose path starts with /buy/" &#9;&#9;&#9;&#9;&#9;&#9;&#9; } &#9;&#9;&#9;&#9;&#9;&#9;] &#9;&#9;&#9;&#9; } &#9;&#9;&#9;] &#9; }, &#9; "webcredentials": { &#9;&#9;&#9;"apps": [ &#9;&#9;&#9;&#9; "B86E5YKCTK.com.Aphelion.Snag" &#9;&#9;&#9;] &#9; } } When I run the validation tool - https://search.developer.apple.com/appsearch-validation-tool I can tell from my server logs that Apple *is* requesting the file: Serving request: &{Method:GET URL:/.well-known/apple-app-site-association Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Encoding:[gzip,identity] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)]] Body:{} GetBody:<nil> ContentLength:0 TransferEncoding:[] Close:false Host:snag.news Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:17.58.101.2:39190 RequestURI:/.well-known/apple-app-site-association TLS:0xc00024c000 Cancel:<nil> Response:<nil> ctx:0xc0000606c0} Also: Serving request: &{Method:GET URL:/apple-app-site-association Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Encoding:[gzip,identity] User-Agent:[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)]] Body:{} GetBody:<nil> ContentLength:0 TransferEncoding:[] Close:false Host:snag.news Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:17.58.101.2:39186 RequestURI:/apple-app-site-association TLS:0xc00024c160 Cancel:<nil> Response:<nil> ctx:0xc0000c3900} But the validator says: Action requiredCould not extract required information for application links. Learn how to implement the recommended Universal Links. Error cannot parse app site association I'm pulling my hair out trying to figure out what I'm doing wrong. One hunch I have is that Apple may not like my SSL certificate since I have a wildcard cert, though I'm not trying to host the files on a subdomain. Any ideas what could be angering the Universal Links gods here? Thanks!
2
0
1.9k
Aug ’22