-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-App Purchases validation fails with "Request timeout" #2225
Comments
Can you run the server with VERBOSE=1 and post the logs related to the call? |
Yep, but I'm not sure that I'm in the position to send real productIdentifier and related info like appId in public. May I change it for now to some random value (I'm pretty sure that AppStore validation should return error in the case of random value and validate_purchase request should not be failed with timeout)?
|
I assume the problem is somewhere inside getFileForProductIdentifier because:
This timeout failure doesn't depend on Heroku platform because on local parse-server with curl this issue is also reproduced. P.S. My fileKey & S3Adapter are configured correctly because I have an access to all files from hosted Parse & upload new files to S3 cloud. |
I made some debugging and my results are:
|
@valeryvoskobovich thanks for the debugging, do you think you could work out a pull request? |
@flovilmart I'll try but I'm not a NodeJS developer :) |
@valeryvoskobovich I'm wasn't a node.js developer either :) I'm sure you'll work something out |
I believe you mean here: https://github.com/ParsePlatform/parse-server/blob/master/src/Routers/IAPValidationRouter.js#L41 we don't put the receipt back |
Yes, that's right. But after the second request to sandbox neither https://github.com/ParsePlatform/parse-server/blob/master/src/Routers/IAPValidationRouter.js#L87 nor https://github.com/ParsePlatform/parse-server/blob/master/src/Routers/IAPValidationRouter.js#L89 isn't called |
even if you set the receipt option? |
Yep. I had to implement inner promise callbacks to Sandbox request to start getting file |
alright :) |
Now I have something like this which is working (as it seems to me): `
|
Here is my changes |
Alright, open a PR and we'll move the conversation over there for implementation details |
@flovilmart my PR is ready, waiting for your comments |
On it :) |
Fixed by #2253 |
@flovilmart Could you make a new parse-server release with my fix? |
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
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
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>
The text was updated successfully, but these errors were encountered: