snowflake: Parse GET from Classes by ID Not Working inside Actions
YellowBox.js:69 Possible Unhandled Promise Rejection (id: 0): Cannot read property 'getScrollableNode' of undefined TypeError: Cannot read property 'getScrollableNode' of undefined at AnimatedComponent._detachNativeEvents (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:54506:24) at AnimatedComponent.componentWillUnmount (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:54467:6) at http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:23355:13 at measureLifeCyclePerf (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:23021:8) at ReactCompositeComponentWrapper.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:23354:1) at Object.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:21620:18) at ReactCompositeComponentWrapper.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:23364:17) at Object.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:21620:18) at ReactCompositeComponentWrapper.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:23364:17) at Object.unmountComponent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true:21620:18)console.warn @ YellowBox.js:69onUnhandled @ Promise.js:25onUnhandled @ rejection-tracking.js:71(anonymous function) @ JSTimers.js:78callTimer @ JSTimersExecution.js:99callTimers @ JSTimersExecution.js:140__callFunction @ MessageQueue.js:234(anonymous function) @ MessageQueue.js:105guard @ MessageQueue.js:45callFunctionReturnFlushedQueue @ MessageQueue.js:104onmessage @ debuggerWorker.js:44
What am I doing wrong? I’m trying to use GET from /classes/<className>/<objectId>
Where should I be making these calls or how as no examples are included anywhere so I’m just spinning my wheels keep getting this error.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 28 (11 by maintainers)
The error suggests that Parse class instance hasn’t been initialized properly. When you put a breakpoint on the
return await this._fetch({line, do you see thatthis._sessionToken,this._applicationIdandthis._ApiBaseUrlare properly set?If not, then you’ll need to add
getHostas another method using the pattern established in src/lib/Backend.js and src/lib/BackendFactory.js.Then you should be able to initiate the promise chain with the following:
Good for you.
It happens to all of us, i was looking for my glasses everywhere this morning before I realized I was wearing them…
On Nov 17, 2016 5:43 PM, “iSamuelBarney” notifications@github.com wrote: