ethersheet-collective / EtherSheet

Online spreadsheet collaboration in real time using node.js. Similar to etherpad-lite but its a spreadsheet!
https://ethersheet.org
BSD 2-Clause "Simplified" License
198 stars 24 forks source link

Error when import CSV #32

Open alertreceive opened 8 years ago

alertreceive commented 8 years ago

here is the log, I masked some info. also, csv attached

root@ethersheet-3379:~/EtherSheet# npm start

ethersheet@0.1.1 start /home/***/EtherSheet node app.js

a–€ a?¢a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20 connect deprecated limit: Restrict request size at location of read node_modules/express/nodemodules/connect/lib/middleware/multipart.js:86:15 SockJS v0.3.9 bound to "./pubsub" ethersheet is listening over http on port 8080 sheet_data [ { id: '73b2f228-1963-4d4f-9ecf-642e7035b6e3', rows: [ 'b1583043-b450-4d3e-97dc-c690325222d0', '3f50ecc5-8fc2-425d-b5df-96ca2cb878e7', '3b0a698f-8c70-4072-9f84-6f516b795537', 'd2df9bd2-b9ca-40aa-aa11-6f92b4754013', '00d6a086-ab74-41cc-b690-cf46302acb55', '35f06296-3077-49aa-861d-260e5e49b70d', '0547bff5-d320-4b6e-a386-01d2b686afbc', 'b34d1b79-c1c4-4d0f-bd58-e80b898c0009', 'b86774b1-f12b-434c-adbf-8dda42a61b16', '074b5618-0911-4cb2-ae57-e754837b0182', '1f6d2ec0-c748-4263-83d6-6a917b54fd4e', 'd71fb3da-0f73-4f3e-ada2-f85aec85b589', '62149a42-ad11-400d-ae64-a5f8166a4669', 'e47dc368-92e7-46df-a133-5dfa8e6b8970', '0519c3cf-4769-4b2b-a458-7d1687d713f1', '5da04c3d-3aa5-470b-aaa4-10221a9bf24a', 'c20959bf-4659-424e-b5eb-0d6d71b5428f', 'c034fe42-19fd-4723-a572-679c899f49e6', '4bc1c5c7-a602-4417-aea8-27abe993755d', '66fb68aa-953a-4c5d-bfa9-cb47f5d9ba1e', 'cb561bb0-2558-4e6d-b3a8-6d02ed0cade8', 'b0506b25-7dd7-464e-9dd8-9bf265201072', 'afefc00e-6732-4540-b0ec-2f693349cb39', '6b3581b1-2bd4-4dfb-a3d1-7dfa48e7e504', 'fbb3f8a3-924b-4e8c-9685-286f1f53adaf', 'cc44d1e2-c526-4808-ab7c-ab139ca13b3d', 'ceaa0417-c4d7-4734-b431-7c54ee9b140f', '3569f0c0-01bf-4fd6-9ba2-04d4e270bf04', '378e8bc7-dc85-421c-a7f2-52c52d13cb4b', '25971576-3c49-4ed1-8877-f5823900884c', 'b0c5941a-a518-4c60-ab3f-7da1387a2d86', 'c0623614-c5a1-4794-a64c-e254370faedf', '0ba7e32c-d516-42d9-8fd2-0d827af3a806', 'a76176f5-afa4-49d3-b36b-57bc32c4f66b', '1813165c-e9c0-483d-a2c9-db68fa4ce1ad', 'c6575fe0-1114-4398-b6f3-209bc2b5e0a8', 'db9c1226-1161-447a-8d63-d59b1d72993e', 'ade7d05e-1dde-4c58-85bd-5848b0fe71d0', '1f6e3333-b751-4894-95a5-8234b4bd619e', '4987fde6-0357-471d-95b2-0548b1762e28', 'e2f2f0cb-3836-420f-a0c2-68f7a23c7252', '2a614f78-a681-4ca2-8db8-19c673f28008', '2965933d-2c57-4aa2-883e-c6ff0502e33d', '7a2e7152-b56f-49b5-824c-2bd6daaed9b4', 'b8db2e88-143a-4a7d-bd64-b4157d62b09b', 'c656c8ab-8a41-4d87-865e-08ddbab0a74c', '2612cf17-40e5-4382-addb-bba44a35acca', '0a04210f-ad2e-429d-9743-e48015c906a9', '0665e8ae-abfd-40bf-836d-88948f1fbcd7', 'de887634-02e2-44a2-b4b8-aaf1fc892e6c', 'f6efb967-c51d-4852-b84f-2520aac6aa3b', '67feb32c-be56-4724-9bac-98fc0049171f', 'cb65315f-b63c-4455-b12f-b5e918e64e09', '435e7a0b-cdee-4b64-baeb-d462507b8e3f', '3aa4d6b1-d6ac-4f62-8543-b93ce370bbdc', '457a4d6b-1858-4680-a102-d09865e8ef2f', '993c1bbb-c69a-422d-a64b-f95298d7ee2a', '23446908-24d6-496c-97f2-ba3fb4cb58d2', '3c38db0c-7476-46f7-9ccf-47c07adcde10', '5d71ec48-f4cc-4f36-850c-9c2213343145', '4c81d403-9d74-4e79-9d7b-e93087ebf074', '00b04379-eef1-47d4-a4ee-ca9656197cfb', 'c1f47af0-1f3f-4d56-a2dc-5cbb07808ef3', '7c514596-79f5-476c-87d0-2803ad2e3492', 'cd35ee73-54a6-443b-adf8-c38f9e3960d6', 'f8609984-b38d-4008-be50-fbd404fb456c', 'dde718ec-699c-4093-9427-bc0d473c3700', '79f07a60-90bb-4661-bc41-4dc8cfe78201', '2a4a360b-15a4-4dcb-bc71-e0480fcdf55e', '83a929c2-e6b3-4e6e-84be-05e432adf15e', 'a607d0f5-642e-49cd-9428-26283eeaf40f', '1551f677-39c5-4946-9410-d48f8031fb96', '21868c91-150e-49f4-9ffa-8040aea0221f', '601e734a-0802-4825-8f28-aa44c04c3952', '7a734498-125a-4662-b3eb-346d109fcd67', 'd7918fbc-e8b6-4f85-b4d5-6149cfff7806', '3de9d94d-4397-49ea-b4e0-5834d65b629c', '9e9769a5-ba04-48fb-b0e6-f5f1ac78d15f', 'a7dafa8f-d848-42d8-b29b-5af1d598425e', '2e4e64a7-60c6-493a-99db-4fefed9cc827', 'ecd8f081-7ef9-4dd3-9222-764fa5d417c5', '6ef9190a-9405-4f57-b80a-d500ff9ea614', '0ba1a819-681e-4ab7-8b59-1116bcd05fa1', 'fd42ebd0-b02e-45fa-afa2-f907f6e84f89', '0e695a73-6d94-45e9-b843-69144b1aff03', '66368ce2-0617-40b2-8e16-5509db847a35', 'c94f89a8-d635-4e47-a10c-e9d6157eccff', 'bfb06dd7-519f-406e-9148-81112f01ae5d', '9fb600ab-4859-4df6-8b08-aabed1498f43', 'cec54025-02c3-4dc6-8359-0afaec840a03', 'f89cfd65-7b02-41f0-ba02-11b0738568d0', '30acda5f-820e-473e-8f37-2a1401058cf3', '767e58ef-75b0-46c3-a23d-914c578f7dd3', 'e5baab3d-fd44-4670-9176-9a76e3be9fbc', '4e5e522e-7b25-48a5-a309-815eb67da17c', '662a20a3-85fc-454a-bb14-768b61b58c5e', '6050c0d8-ae90-4016-85e4-0118fd4f7667', '8aee6eba-f18f-450a-8fc4-f564afec2f30', '7aa990bc-d433-4075-9dbc-14525079aab7', '8024aa81-ace1-49e9-8591-c4efbf215a42' ], cols: [ '174efe21-0589-4e89-9130-2a7a7ad6a667', '2462a5a7-2c5a-448d-8279-9bc94eb0a15b', 'b127b7d1-edd5-4a1e-ab63-5229ac7eb7c4', 'd10a60b6-6844-4209-ac55-94b37f28fb38', 'b5a287f2-ada4-46fe-9ecf-ccdc1ef8f18c', 'a09fba72-55d1-47e5-a0d3-33269a487995', 'a71b293d-9f8a-4fe0-aeac-53432b228dcd', '213d0253-34ac-44ad-a834-892c17bff98b', 'f9899aa9-83b6-43ef-b2ce-5ad74f010249', 'f76de8fc-8885-4c2f-867f-da7426bac145', 'c88d6c04-1f78-4ee2-afbf-4a894b8ef307', 'c161d023-dc13-43e6-a2d5-df26e465d285', '1a3053f1-3c64-47e6-8ef4-de600d52280f', '4e3d627f-b54f-4d4a-afe5-73cef89f7d04', '74206f43-0e22-44ba-9a79-f6f040abf529', 'b118e4ab-5271-4c6d-9796-94c837044976', '4b2c1cdc-2adf-4a9f-aba8-05b89f09093f', 'ec049937-6929-4190-b12a-90f45d33a973', 'db003ce9-94a4-4411-b028-6758801b31ad', '78e123ac-5893-4c00-8751-dfcd59b7b77d' ], row_heights: null, col_widths: null, cells: {}, meta: { title: 'Sheet1', lastAccess: 1452580084704 } } ] GET /s/SECUR GET /es_client/styles/fonts.css GET /es_client/styles/es_container.css GET /es_client/styles/table.css GET /es_client/styles/menu.css GET /es_client/vendor/require.js GET /es_client/vendor/jquery.js GET /es_client/vendor/i18next.js GET /es_client/boot.js GET /es_client/locales/en-US/translation.json GET /es_client/locales/en/translation.json GET /es_client/locales/dev/translation.json GET /es_client/ethersheet.js GET /es_client/config.js GET /es_client/lib/socket.js GET /es_client/vendor/es_command.js GET /es_client/lib/undo.js GET /es_client/models/user_collection.js GET /es_client/models/sheet_collection.js GET /es_client/models/selection_collection.js GET /es_client/views/table.js GET /es_client/views/expression_editor.js GET /es_client/views/ethersheet_container.js GET /es_client/views/function_menu.js GET /es_client/views/history.js GET /es_client/views/sheet_list.js GET /es_client/lib/expression_helpers.js GET /es_client/lib/keyboard.js GET /es_client/vendor/underscore.js GET /es_client/vendor/sockjs-client.js GET /es_client/models/es_collection.js GET /es_client/models/user.js GET /es_client/models/sheet.js GET /es_client/models/selection.js GET /es_client/templates.js GET /es_client/vendor/ref-binder.js GET /es_client/views/col_menu.js GET /es_client/views/row_menu.js GET /es_client/helpers.js GET /es_client/vendor/lookbehind.js GET /es_client/vendor/xregexp.js GET /es_client/vendor/backbone.js GET /es_client/models/es_model.js GET /es_client/helpers/uid.js GET /es_client/vendor/es_expression.js GET /es_client/helpers/column_index_to_name.js GET /es_client/locales/en-US/translation.json GET /es_client/locales/en/translation.json GET /es_client/locales/dev/translation.json GET /es_client/icons/dark_stripes.png GET /es_client/icons/ethersheet-icon-sheets-gray.png GET /es_client/icons/ethersheet-icon-function-gray.png GET /es_client/icons/ethersheet-downarrow.png GET /es_client/icons/es-trashcan.png GET /es_client/icons/es_pen.png GET /SECUR/pubsub/info 2ms 200 GET /es_client/icons/ethersheet-icon-newtable.png GET /es_client/icons/ethersheet-icon-export.png GET /es_client/icons/ethersheet-icon-import.png POST /SECUR/pubsub/246/n7dopdfz/xhr_streaming 5ms (unfinished) received SECUR {"type":"user","action":"addUser","params":[{"id":"9ntqDDdQAtsCdrHLjC"}]} broadcast SECUR {"type":"user","action":"addUser","params":[{"id":"9ntqDDdQAtsCdrHLjC"}]} 0cdfe3a4-96e0-42bd-b8f8-da1c3837fe59 POST /SECUR/pubsub/246/n7dopdfz/xhr_send 4ms 204 received SECUR {"type":"user","action":"replicateCurrentUser","params":[]} broadcast SECUR {"type":"user","action":"replicateCurrentUser","params":[]} 0cdfe3a4-96e0-42bd-b8f8-da1c3837fe59 received SECUR {"type":"selection","action":"addSelection","params":[{"id":"3b7aUBdCk30CbeTnCC","sheet_id":null,"user_id":"9ntqDDdQAtsCdrHLjC","cells":[]}]} broadcast SECUR {"type":"selection","action":"addSelection","params":[{"id":"3b7aUBdCk30CbeTnCC","sheet_id":null,"user_id":"9ntqDDdQAtsCdrHLjC","cells":[]}]} 0cdfe3a4-96e0-42bd-b8f8-da1c3837fe59 received SECUR {"type":"selection","action":"replicateLocalSelection","params":[]} broadcast SECUR {"type":"selection","action":"replicateLocalSelection","params":[]} 0cdfe3a4-96e0-42bd-b8f8-da1c3837fe59 POST /SECUR/pubsub/246/n7dopdfz/xhr_send 1ms 204 GET /esclient/icons/ethersheet-icon-sheets.png /home/**/EtherSheet/lib/ethersheet_service.js:145 csv().from(data.toString()) ^

TypeError: csv is not a function at EtherSheetService.createSheetFromCSV (/home/**_/EtherSheet/lib/ethersheetservice.js:145:3) at /home/******/EtherSheet/lib/server.js:86:10 at FSReqWrap.readFileAfterClose as oncomplete a–€ a?¢a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a–‘a– npm ERR! Linux 3.2.0-70-virtual npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v5.4.0 npm ERR! npm v3.3.12 npm ERR! code ELIFECYCLE npm ERR! ethersheet@0.1.1 start: node app.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ethersheet@0.1.1 start script 'node app.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the ethersheet package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node app.js npm ERR! You can get their info via: npm ERR! npm owner ls ethersheet npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/***/EtherSheet/npm-debug.log root@ethersheet-3379:~/EtherSheet#

book3.txt