{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/430","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/430/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/430/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/430","id":43925541,"number":430,"title":"Error in method \"/cfs/files/:value/:value/:value/\", Error: TypeError: Cannot read property 'pdfs' of undefined","user":{"login":"insaneinc01","id":5807353,"avatar_url":"https://avatars.githubusercontent.com/u/5807353?v=3","gravatar_id":"","url":"https://api.github.com/users/insaneinc01","html_url":"https://github.com/insaneinc01","followers_url":"https://api.github.com/users/insaneinc01/followers","following_url":"https://api.github.com/users/insaneinc01/following{/other_user}","gists_url":"https://api.github.com/users/insaneinc01/gists{/gist_id}","starred_url":"https://api.github.com/users/insaneinc01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insaneinc01/subscriptions","organizations_url":"https://api.github.com/users/insaneinc01/orgs","repos_url":"https://api.github.com/users/insaneinc01/repos","events_url":"https://api.github.com/users/insaneinc01/events{/privacy}","received_events_url":"https://api.github.com/users/insaneinc01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-25T14:31:08Z","updated_at":"2015-08-21T13:43:12Z","closed_at":"2014-10-23T22:00:51Z","body":"Hello everyone, \r\n\r\nI'm getting this weird error only once in a while - \r\nError in method \"/cfs/files/:value/:value/:value/\", Error: TypeError: Cannot read property 'pdfs' of undefined\r\n    at Object.httpGetHandler (packages/cfs:access-point/access-point-handlers.js:61)\r\n    at Object.accessPoint.get (packages/cfs:access-point/access-point-server.js:175)\r\n    at packages/cfs:http-methods/http.methods.server.api.js:493 \r\n\r\nI'm using gridFS to upload some PDFs to a server. The collection file name is 'pdfs' as you can see above.\r\nThe file uploads as usual, it even shows up in the collection, but when i access it from the browser, it throws the above issue. \r\n\r\nThis happens at random; some files are uploaded and accessible perfectly well. But some are mysteriously throwing this error. If i re-upload the same file, then there's no problem. Which means, there's nothing wrong with the file or the filename. \r\n\r\nAny help/ideas will be greatly appreciated!  Thank you! "},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/133427895","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/430#issuecomment-133427895","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/430","id":133427895,"user":{"login":"tdhz77","id":2060654,"avatar_url":"https://avatars.githubusercontent.com/u/2060654?v=3","gravatar_id":"","url":"https://api.github.com/users/tdhz77","html_url":"https://github.com/tdhz77","followers_url":"https://api.github.com/users/tdhz77/followers","following_url":"https://api.github.com/users/tdhz77/following{/other_user}","gists_url":"https://api.github.com/users/tdhz77/gists{/gist_id}","starred_url":"https://api.github.com/users/tdhz77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdhz77/subscriptions","organizations_url":"https://api.github.com/users/tdhz77/orgs","repos_url":"https://api.github.com/users/tdhz77/repos","events_url":"https://api.github.com/users/tdhz77/events{/privacy}","received_events_url":"https://api.github.com/users/tdhz77/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T13:43:12Z","updated_at":"2015-08-21T13:43:12Z","body":"My issue was with deployment and something going wrong after deploying with MUP. \r\nmup stop\r\nmongo [app name]\r\nuse Database\r\ndb.dropDatabase();\r\n\r\nI deleted my mup config. \r\nReinitialize with mup init\r\nmup setup\r\nmup deploy\r\n\r\nand it worked.\r\nI switched from FS Collection to GridFS which may have caused some error with the db."}}