Meteor-CollectionFS icon indicating copy to clipboard operation
Meteor-CollectionFS copied to clipboard

Race condition when loading EJSON for FS.File

Open michaelwhelehan opened this issue 9 years ago • 2 comments

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

michaelwhelehan avatar Jul 20 '15 08:07 michaelwhelehan

Same in a regular Meteor App

enzolutions avatar Aug 18 '17 23:08 enzolutions

+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>)

boostbob avatar Jan 31 '19 07:01 boostbob