parse-server: In-App Purchases validation fails with "Request timeout"

Issue Description

Sending the request to ‘validate_purchase’ from iOS device (Parse iOS SDK v1.13.0) every time fails with ‘Request timeout’ in server logs and HTML web-page in responseString (please see below)

Steps to reproduce

  1. Make purchase on iOS device to obtain valid receipt
  2. Send request to ‘validate_purchase’ with correct productIdentifier & receipt

Expected Results

PFProduct ‘download’ file starts downloading

Actual Outcome

Request fails with “Request timeout” in server logs and HTML web-page in responseString in -[PFURLSessionJSONDataTaskDelegate _taskDidFinish]

Environment Setup

  • Server
    • parse-server version: 2.2.15
    • Localhost or remote server: Heroku
  • Database
    • Localhost or remote server: mLab

Logs/Trace

Logs in heroku console:

at=error code=H12 desc="Request timeout" method=POST path="/parse/validate_purchase" host=mytestapp.herokuapp.com request_id=3d2ed6f9-d18b-4b8d-a8a2-addb60afe45c fwd="93.84.7.35" dyno=web.1 connect=0ms service=30257ms status=503 bytes=0

self.responseString value in [PFURLSessionJSONDataTaskDelegate _taskDidFinish]:

<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html, body, iframe { margin: 0; padding: 0; height: 100%; } iframe { display: block; width: 100%; border: none; } </style> <title>Application Error</title> </head> <body> <iframe src="//s3.amazonaws.com/heroku_pages/error.html"> <p>Application Error</p> </iframe> </body> </html>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

@valeryvoskobovich I’m wasn’t a node.js developer either 😃 I’m sure you’ll work something out