singleEvent: true errors out.
See original GitHub issue 22 firebase.query(
23 "/profiles",
24 {
25 singleEvent: true,
26 orderBy: {
27 type: firebase.QueryOrderByType.CHILD,
28 value: 'user_id'
29 },
30
31 range: {
32 type: firebase.QueryRangeType.EQUAL_TO,
33 value: this.userId
34 },
35
36 limit: {
37 type: firebase.QueryLimitType.LAST,
38 value: 1
39 }
40 }
41 ).then((data) => {console.log("YUJUUUU")});
JS: EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'orderBy' of undefined
JS: ORIGINAL STACKTRACE:
JS: Error: Uncaught (in promise): TypeError: Cannot read property 'orderBy' of undefined
JS: at resolvePromise (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:416:31)
JS: at resolvePromise (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:401:17)
JS: at /data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:449:17
JS: at ZoneDelegate.invokeTask (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:223:37)
JS: at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (/data/data/org.nativescript.test/files/app/tns_modules/@angular/core/bundles/core.umd.js:6233:41)
JS: at ZoneDelegate.invokeTask (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:222:42)
JS: at Zone.runTask (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:123:47)
JS: at drainMicroTaskQueue (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:355:35)
JS: Unhandled Promise rejection: Cannot read property 'orderBy' of undefined ; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 'orderBy' of undefined TypeError: Cannot read property 'orderBy' of undefined
JS: at /data/data/org.nativescript.test/files/app/tns_modules/nativescript-plugin-firebase/firebase.js:983:18
JS: at new ZoneAwarePromise (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:465:29)
JS: at Object.firebase.query (/data/data/org.nativescript.test/files/app/tns_modules/nativescript-plugin-firebase/firebase.js:978:10)
JS: at ProfileService.getUserData (/data/data/org.nativescript.test/files/app/services/profile.service.js:21:18)
JS: at ProfileService.getUser (/data/data/org.nativescript.test/files/app/services/profile.service.js:17:14)
JS: at new JobService (/data/data/org.nativescript.test/files/app/services/job.service.js:15:29)
JS: at DebugAppView._View_Jobs_Host0.createInternal (Jobs_Host.ngfactory.js:22:26)
JS: at DebugAppView.AppView.create (/data/data/org.nativescript.test/files/app/tns_modules/@angular/core/bundles/core.umd.js:9419:25)
JS: at DebugAppView.create (/data/data/org.nativescript.test/files/app/tns_modules/@angular/core/bundles/core.umd.js:9631:48)
JS: at ComponentFactory.create (/data/data/org.nativescript.test/files/app/tns_modules/@angular/core/bundles/core.umd.js:6029:40)
JS: Error: Uncaught (in promise): TypeError: Cannot read property 'orderBy' of undefined
The problem is present only when using singleEvent: true
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Single-event upset - Wikipedia
A single-event upset (SEU), also known as a single-event error (SEE), is a change of state caused by one single ionizing particle (ions,...
Read more >Single Event Upset Detection and Correction in Virtex-4 and ...
Virtex-4 and Virtex-5 provide a specialized core, called Frame ECC (error correcting code), for detection and identification of single and double-bit errors in ......
Read more >An event wrapper for data that is exposed via a LiveData that ...
Used as a wrapper for data that is exposed via a LiveData that represents an event. */. open class Event<out T>(private val content:...
Read more >Neutron-Induced Single Event Upset (SEU) FAQ - Microsemi
A single event upset (SEU) is a bit flip in a memory element of a semiconductor device. ... voting out the error (TMR)...
Read more >Fixing HTTP 404 errors - Knowledgebase | The Events Calendar
Fixing HTTP 404 errors. On occasion some event pages might start display a 404 – Not found page instead of the events.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, that’s the correct signature.
This works 😃