Hi,
My service call `POST https://buy.itunes.apple.com/verifyReceipt` API about 1000 times every day to verify receipts of Auto-Renewable Subscription.
From February 10, the API call timed out about once in 10 times.
I call the API like bellow (ruby), and got Net::ReadTimeout exception about once in 10 times.
def verify_receipt
https = Net::HTTP.new('buy.itunes.apple.com', 443)
https.use_ssl = true
https.post('/verifyReceipt', {
:'receipt-data' => 'BASE64 encoded receipt',
password: 'APPSTORE SECRET'
}.to_json)
end
(0..30).each do |i|
p i
verify_receipt
# sleep 3 # Timeout occured even if sleep 3 seconds.
end
The API call was fully successful before February 10.
Is there something Apple's system change?
Should I limit the frequency of calls?
Regards.