Meteor-CollectionFS
Meteor-CollectionFS copied to clipboard
Race condition when loading EJSON for FS.File
Hi there
I get the following error sporadically (mainly when my meteor app is running within Cordova on an Android device):
Exception while parsing DDP Error: Custom EJSON type FS.File is not defined message: "Custom EJSON type FS.File is not defined
It seems that EJSON or a part of my application is trying to access the FS.File custom EJSON type before FS.File has registered that custom EJSON type.
Is there any way to force the FS.File package to load or to register the EJSON type before other application logic that accesses it runs?
Thanks Michael
Same in a regular Meteor App
+1 problem
Exception while parsing DDP Error: Custom EJSON type FS.File is not defined
at Object.fromJSONValue (ejson.js:215)
at fromJSONValueHelper (ejson.js:317)
at Object.keys.forEach.key (ejson.js:346)
at Array.forEach (<anonymous>)
at adjustTypesFromJSONValue (ejson.js:343)
at Object.keys.forEach.key (ejson.js:353)
at Array.forEach (<anonymous>)
at Object.adjustTypesFromJSONValue [as _adjustTypesFromJSONValue] (ejson.js:343)
at forEach.field (utils.js:72)
at Array.forEach (<anonymous>)