Skip to content

Apple Sandbox validation - Check for empty data#311

Open
l0gg3r wants to merge 4 commits intovoltrue2:developfrom
l0gg3r:develop
Open

Apple Sandbox validation - Check for empty data#311
l0gg3r wants to merge 4 commits intovoltrue2:developfrom
l0gg3r:develop

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.

1 participant