Universal links stops working randomly, When i tried this curl API test i found strange result
- Case 1: When the curl test return association JSON response it works fine
- Case 2: Sometimes the curl test fails and association JSON response is not returned for the same log is below: (Actual domain is replaced by mydomain.com)
- Https enabled
- No redirections
- Association added in .well-known folder
- Works randomly without any change in sever
- IP added as exception in blacklist
- Applebot added as:
User-agent: Applebot
Allow: /.well-known/
Curl API Test Response:
Using Terminal:
curl -v https://app-site-association.cdn-apple.com/a/v1/mydomain.com
* Trying 8.241.155.124:443...
* Connected to app-site-association.cdn-apple.com (8.241.155.124) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=app-site-association.cdn-apple.com; OU=management:idms.group.5707244; O=Apple Inc.; ST=California; C=US
* start date: Sep 1 20:44:29 2021 GMT
* expire date: Oct 1 20:44:28 2022 GMT
* subjectAltName: host "app-site-association.cdn-apple.com" matched cert's "app-site-association.cdn-apple.com"
* issuer: CN=Apple Public Server RSA CA 12 - G1; O=Apple Inc.; ST=California; C=US
* SSL certificate verify ok.
> GET /a/v1/mydomain.com HTTP/1.1
> Host: app-site-association.cdn-apple.com
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Date: Tue, 28 Jun 2022 06:51:03 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 10
< Connection: keep-alive
< Apple-Failure-Details: {"cause":"context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}
< Apple-Failure-Reason: SWCERR00301 Timeout
< Apple-From: https://mydomain.com/.well-known/apple-app-site-association
< Apple-Try-Direct: true
< Cache-Control: public, max-age=1800
< Expires: Tue, 28 Jun 2022 06:51:23 GMT
< X-Cache: MISS
< CDNUUID: 2478cf3a-1d35-4870-ae61-0ad342ef8adf-1481196180
< CDN-Server: lumn
< Age: 1238
<
Not Found
* Connection #0 to host app-site-association.cdn-apple.com left intact
Please support, Urgent Help Required.