Skip to content

Instantly share code, notes, and snippets.

@agius
Last active August 29, 2015 14:22
Show Gist options
  • Save agius/4ed9838c0079b3b2147f to your computer and use it in GitHub Desktop.
Save agius/4ed9838c0079b3b2147f to your computer and use it in GitHub Desktop.
Meteor autoform:cfs issue
accounts-base@1.2.0
accounts-password@1.1.1
accounts-ui-unstyled@1.1.7
aldeed:autoform@5.3.0
aldeed:collection2@2.3.1
aldeed:simple-schema@1.1.0
autoupdate@1.2.1
base64@1.0.3
binary-heap@1.0.3
blaze@2.1.2
blaze-tools@1.0.3
boilerplate-generator@1.0.3
callback-hook@1.0.3
cfs:access-point@0.0.0
cfs:autoform@2.2.1
cfs:base-package@0.0.30
cfs:collection@0.0.1
cfs:collection-filters@0.0.0
cfs:data-man@0.0.6
cfs:file@0.0.1
cfs:filesystem@0.0.0
cfs:http-methods@0.0.29
cfs:http-publish@0.0.13
cfs:power-queue@0.0.1
cfs:reactive-list@0.0.9
cfs:reactive-property@0.0.4
cfs:standard-packages@0.0.2
cfs:storage-adapter@0.0.0
cfs:tempstore@0.0.2
cfs:upload-http@0.0.2
cfs:worker@0.0.0
check@1.0.5
coffeescript@1.0.6
ddp@1.1.0
deps@1.0.7
ejson@1.0.6
email@1.0.6
fastclick@1.0.3
fourseven:scss@3.1.1
geojson-utils@1.0.3
html-tools@1.0.4
htmljs@1.0.4
http@1.1.0
id-map@1.0.3
iron:controller@1.0.7
iron:core@1.0.7
iron:dynamic-template@1.0.7
iron:layout@1.0.7
iron:location@1.0.7
iron:middleware-stack@1.0.7
iron:router@1.0.7
iron:url@1.0.7
jquery@1.11.3_2
json@1.0.3
launch-screen@1.0.2
less@1.0.14
livedata@1.0.13
localstorage@1.0.3
logging@1.0.7
materialize:materialize@0.96.1
meteor@1.1.6
meteor-platform@1.2.2
minifiers@1.1.5
minimongo@1.0.8
mobile-status-bar@1.0.3
momentjs:moment@2.8.4
mongo@1.1.0
mongo-livedata@1.0.8
mquandalle:bower@1.4.1
npm-bcrypt@0.7.8_2
observe-sequence@1.0.6
ordered-dict@1.0.3
raix:eventemitter@0.0.2
raix:ui-dropped-event@0.0.7
random@1.0.3
reactive-dict@1.1.0
reactive-var@1.0.5
reload@1.1.3
retry@1.0.3
routepolicy@1.0.5
service-configuration@1.0.4
session@1.1.0
sha@1.0.3
softwarerero:accounts-t9n@1.0.9
spacebars@1.0.6
spacebars-compiler@1.0.6
srp@1.0.3
standard-app-packages@1.0.5
templating@1.1.1
tracker@1.0.7
ui@1.0.6
underscore@1.0.3
url@1.0.4
useraccounts:core@1.11.0
useraccounts:materialize@1.11.0
webapp@1.2.0
webapp-hashing@1.0.3
Router.route('/images', {name: 'images', controller: 'ImageUploadsController'});
ImageUploadsController = RouteController.extend({
action: function() {
this.render("imageUploadsView");
}
});
<template name="imageUploadsView">
{{> quickForm collection="ImageUploads" id="insertImageUpload" type="insert" omitFields="userId,createdAt,updatedAt"}}
</template>
ImageUploads = new Mongo.Collection("imageUploads");
ImageUploads.allow({
insert: function(){
return true;
},
update: function(userId, image){
return image.userId == userId;
},
remove: function(userId, image){
return image.userId == userId;
}
});
Schema.ImageUploads = new SimpleSchema({
userId: {
type: String,
autoValue: function() {
return this.userId;
}
},
createdAt: createdAt,
updatedAt: updatedAt,
name: {
type: String
},
imageId: {
type: String,
autoform: {
afFieldInput: {
type: "cfs-file",
collection: "images"
}
}
}
});
ImageUploads.attachSchema(Schema.ImageUploads);
Images = new FS.Collection("images", {
stores: [new FS.Store.FileSystem("images", {path: "~/Projects/.uploads"})]
});
Images.allow({
download: function(){
return true;
},
fetch: null
});
Meteor.publish('images', function () {
return Images.find();
});
Meteor.publish('imageUploads', function () {
return ImageUploads.find();
});
I20150606-12:26:34.585(-7)? Exception in setInterval callback: MongoError: '$pull' is empty. You must specify a field like so: {$mod: {<field>: ...}}
I20150606-12:26:34.586(-7)? at Object.Future.wait (/Users/agius/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:398:15)
I20150606-12:26:34.586(-7)? at [object Object].<anonymous> (packages/meteor/helpers.js:119:1)
I20150606-12:26:34.586(-7)? at [object Object].MongoConnection.(anonymous function) [as update] (packages/mongo/mongo_driver.js:678:1)
I20150606-12:26:34.586(-7)? at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:575:1)
I20150606-12:26:34.586(-7)? at [object Object].Mongo.Collection.(anonymous function) [as update] (packages/aldeed:collection2/collection2.js:159:1)
I20150606-12:26:34.586(-7)? at Accounts._expireTokens (packages/accounts-base/accounts_server.js:858:1)
I20150606-12:26:34.586(-7)? at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150606-12:26:34.587(-7)? at packages/meteor/timers.js:6:1
I20150606-12:26:34.587(-7)? at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
I20150606-12:26:34.587(-7)? - - - - -
I20150606-12:26:34.587(-7)? at Object.toError (/Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/utils.js:114:11)
I20150606-12:26:34.587(-7)? at /Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/collection/core.js:577:27
I20150606-12:26:34.587(-7)? at /Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/db.js:1195:7
I20150606-12:26:34.587(-7)? at /Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/db.js:1903:9
I20150606-12:26:34.588(-7)? at Server.Base._callHandler (/Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/base.js:453:41)
I20150606-12:26:34.588(-7)? at /Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/server.js:487:18
I20150606-12:26:34.588(-7)? at [object Object].MongoReply.parseBody (/Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
I20150606-12:26:34.588(-7)? at [object Object].<anonymous> (/Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/server.js:445:20)
I20150606-12:26:34.588(-7)? at [object Object].emit (events.js:95:17)
I20150606-12:26:34.588(-7)? at [object Object].<anonymous> (/Users/agius/.meteor/packages/mongo/.1.1.0.1ruc6ua++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:207:13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment