{"action":"created","issue":{"url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/90","repository_url":"https://api.github.com/repos/BlinkTagInc/node-gtfs","labels_url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/90/comments","events_url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/90/events","html_url":"https://github.com/BlinkTagInc/node-gtfs/issues/90","id":295633358,"number":90,"title":"GTFS data importing error TypeError: Cannot convert undefined or null to object","user":{"login":"danydacosta","id":23237919,"avatar_url":"https://avatars0.githubusercontent.com/u/23237919?v=4","gravatar_id":"","url":"https://api.github.com/users/danydacosta","html_url":"https://github.com/danydacosta","followers_url":"https://api.github.com/users/danydacosta/followers","following_url":"https://api.github.com/users/danydacosta/following{/other_user}","gists_url":"https://api.github.com/users/danydacosta/gists{/gist_id}","starred_url":"https://api.github.com/users/danydacosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danydacosta/subscriptions","organizations_url":"https://api.github.com/users/danydacosta/orgs","repos_url":"https://api.github.com/users/danydacosta/repos","events_url":"https://api.github.com/users/danydacosta/events{/privacy}","received_events_url":"https://api.github.com/users/danydacosta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-08T19:17:57Z","updated_at":"2018-02-09T09:37:21Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nI'm having trouble when importing GTFS using gtfs-import. I have an error `TypeError: Cannot convert undefined or null to object\\transit\\TransitData\\gtfs-downloads/gtfs_swiss-gtfs.zip`. Below is my files:\r\n\r\nconfig.json:\r\n\r\n```\r\n{\r\n  \"mongoUrl\": \"mongodb://localhost:27017/gtfs_swiss\",\r\n  \"agencies\": [\r\n    {\r\n      \"agency_key\": \"gtfs_swiss\",\r\n      \"url\": \"http://transitfeeds.com/p/sbb-cff-ffs/793/latest/download\",\r\n      \"exclude\": [\r\n        \"fare_attributes\",\r\n        \"fare_rules\",\r\n        \"feed_info\",\r\n        \"frequencies\",\r\n        \"shapes\"\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\ngtfs-import output:\r\n\r\n```\r\nC:\\Users\\Dany\\Desktop\\transit\\TransitData>gtfs-import\r\n\r\nStarting GTFS import for 1 file\r\ngtfs_swiss: Downloading GTFS from http://transitfeeds.com/p/sbb-cff-ffs/793/latest/download\r\ngtfs_swiss: Download successful\r\nTypeError: Cannot convert undefined or null to object\\transit\\TransitData\\gtfs-downloads/gtfs_swiss-gtfs.zip\r\n    at Function.assign (<anonymous>)\r\n    at executeOperation (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\node_modules\\mongodb\\lib\\utils.js:386:14)\r\n    at Collection.remove (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\node_modules\\mongodb\\lib\\collection.js:1239:10)\r\n    at NativeCollection.(anonymous function) [as remove] (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\node_modules\\mongoose\\lib\\drivers\\node-mongodb-native\\collection.js:139:28)\r\n    at Promise.all.models.map.model (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\lib\\import.js:54:35)\r\n    at Array.map (<anonymous>)\r\n    at removeData (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\lib\\import.js:53:29)\r\n    at Object.module.exports [as import] (C:\\Users\\Dany\\AppData\\Roaming\\npm\\node_modules\\gtfs\\lib\\import.js:324:13)\r\n    at <anonymous>\r\n```\r\n\r\nThe mongodb connection seems to be ok as gtfs-import successfully created collections in my mongodb database. See image attached\r\n\r\n![2018-02-08 20_13_23-mongodb compass community - localhost_27017](https://user-images.githubusercontent.com/23237919/35993092-8d1d0de0-0d0c-11e8-9c64-49adc59e84c5.png)\r\n\r\nBut it seems that the error occurs when gtfs-import tries to move the data. Any help would greatly be appreciate.\r\n"},"comment":{"url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/comments/364383492","html_url":"https://github.com/BlinkTagInc/node-gtfs/issues/90#issuecomment-364383492","issue_url":"https://api.github.com/repos/BlinkTagInc/node-gtfs/issues/90","id":364383492,"user":{"login":"danydacosta","id":23237919,"avatar_url":"https://avatars0.githubusercontent.com/u/23237919?v=4","gravatar_id":"","url":"https://api.github.com/users/danydacosta","html_url":"https://github.com/danydacosta","followers_url":"https://api.github.com/users/danydacosta/followers","following_url":"https://api.github.com/users/danydacosta/following{/other_user}","gists_url":"https://api.github.com/users/danydacosta/gists{/gist_id}","starred_url":"https://api.github.com/users/danydacosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danydacosta/subscriptions","organizations_url":"https://api.github.com/users/danydacosta/orgs","repos_url":"https://api.github.com/users/danydacosta/repos","events_url":"https://api.github.com/users/danydacosta/events{/privacy}","received_events_url":"https://api.github.com/users/danydacosta/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T09:37:21Z","updated_at":"2018-02-09T09:37:21Z","author_association":"NONE","body":"Yeah sorry I made a mistake. It doesn't work **without** `--skipDelete` . He was able to fully import into mongodb. Indeed, I'm on Windows 10.\r\n\r\nThank you again!"}}
{"actor":{"display_login":"danydacosta"}}