首先,您托管文件的 github 服务器未发送正确的Content-Type
标头:
$ curl -I http://rmosolgo.github.io/assets/rm_example.pkpass
HTTP/1.1 200 OK
Server: GitHub.com
Content-Type: application/octet-stream
Last-Modified: Wed, 16 Sep 2015 23:00:53 GMT
Access-Control-Allow-Origin: *
Expires: Thu, 17 Sep 2015 01:41:38 GMT
Cache-Control: max-age=600
Content-Length: 748362
Accept-Ranges: bytes
Date: Thu, 17 Sep 2015 01:31:38 GMT
Age: 0
X-Served-By: cache-iad2133-IAD
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1442453498.285053,VS0,VE7
Vary: Accept-Encoding
X-Cache: MISS from liveandlearnatlanta.hotelwifi.com
Via: 1.1 varnish, 1.1 liveandlearnatlanta.hotelwifi.com (squid/3.3.2)
Connection: keep-alive
使用正确的标头提供时,传递正确加载和摄取。
但是,日志表明您的注册 Web 服务设置不正确,并且正在发出404
响应而不是预期的201
.
Sep 16 21:35:35 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:35 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:42 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:42 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:43 iPhone passd[140] <Warning>: Generating POST request with URL <https://check-ins-staging.planningcenteronline.com/v1/devices/b0d117f8963f3d5103637f4ca990e69a/registrations/pass.com.PlanningCenter.CheckIn/89709>
Sep 16 21:35:43 iPhone passd[140] <Warning>: Request contains header field <Authorization: ApplePass 2ece029fc4b7abe8aedfe95fe2375815e2504cc58ad3111689e29f08f8dbb689>
Sep 16 21:35:43 iPhone passd[140] <Warning>: Request contains body dictionary {
pushToken = 5d1844d7403dfeca24f8a2275c3161a801515f94c1e07909de5ea6aa85f08479;
}
Sep 16 21:35:43 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:43 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:43 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:43 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:43 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:43 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:44 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:44 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:44 iPhone passd[140] <Warning>: Verifying structure and signature for pass pass.com.PlanningCenter.CheckIn/89709
Sep 16 21:35:44 iPhone passd[140] <Warning>: Signature validation: succeeded
Sep 16 21:35:44 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) got response with code 404
Sep 16 21:35:44 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) encountered error: Unexpected response code 404
Sep 16 21:35:44 iPhone passd[140] <Warning>: Generating POST request with URL <https://check-ins-staging.planningcenteronline.com/v1/log>
Sep 16 21:35:44 iPhone passd[140] <Warning>: Request contains body dictionary {
logs = (
"[2015-09-16 21:35:44 -0400] Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) encountered error: Unexpected response code 404"
);
}
Sep 16 21:35:44 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) will retry after 10 seconds
Sep 16 21:35:45 iPhone passd[140] <Warning>: Log task (pass type pass.com.PlanningCenter.CheckIn, web service url https://check-ins-staging.planningcenteronline.com) got response with code 200
Sep 16 21:35:54 iPhone passd[140] <Warning>: Generating POST request with URL <https://check-ins-staging.planningcenteronline.com/v1/devices/b0d117f8963f3d5103637f4ca990e69a/registrations/pass.com.PlanningCenter.CheckIn/89709>
Sep 16 21:35:54 iPhone passd[140] <Warning>: Request contains header field <Authorization: ApplePass 2ece029fc4b7abe8aedfe95fe2375815e2504cc58ad3111689e29f08f8dbb689>
Sep 16 21:35:54 iPhone passd[140] <Warning>: Request contains body dictionary {
pushToken = 5d1844d7403dfeca24f8a2275c3161a801515f94c1e07909de5ea6aa85f08479;
}
Sep 16 21:35:55 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) got response with code 404
Sep 16 21:35:55 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) encountered error: Unexpected response code 404
Sep 16 21:35:55 iPhone passd[140] <Warning>: Generating POST request with URL <https://check-ins-staging.planningcenteronline.com/v1/log>
Sep 16 21:35:55 iPhone passd[140] <Warning>: Request contains body dictionary {
logs = (
"[2015-09-16 21:35:55 -0400] Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) encountered error: Unexpected response code 404"
);
}
Sep 16 21:35:55 iPhone passd[140] <Warning>: Register task (for device b0d117f8963f3d5103637f4ca990e69a, pass type pass.com.PlanningCenter.CheckIn, serial number 89709; with web service url https://check-ins-staging.planningcenteronline.com) will retry after 10 seconds