Skip to content
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

Apple Sandbox validation - Check for empty data #311

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

l0gg3r
Copy link

@l0gg3r l0gg3r commented Apr 3, 2020

Starting on April 3, 2020 Apple Sandbox validation started to fail,

As I've debugged, the data variable is empty. most probably this is Apple's fault,
but anyway this causes to an unhandled exception.

TypeError: Cannot read property 'status' of undefined
    at /opt/someproj/node_modules/in-app-purchase/lib/apple.js:207:22
    at Request._callback (/opt/someproj/API/node_modules/in-app-purchase/lib/apple.js:410:16)
    at Request.self.callback (/opt/someproj/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/opt/someproj/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/opt/someproj/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1055:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

This happens as there is a reference to data.status without checking data for undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant