nextcloud / tables

🍱 Nextcloud tables app
https://apps.nextcloud.com/apps/tables
GNU Affero General Public License v3.0
148 stars 23 forks source link

Csv export not working #996

Open adityass35b opened 6 months ago

adityass35b commented 6 months ago

Steps to reproduce

1.click on export to csv 2. 3.

Expected behavior

Csv file getting downloaded

Actual behavior

Csv file not getting downloaded

Tables app version

No response

Browser

No response

Client operating system

No response

Operating system

No response

Web server

None

PHP engine version

None

Database

None

Additional info

No response

juliusknorr commented 6 months ago

Thanks for reporting. Could you please check the Nextcloud log and browser console for errors?

juliusknorr commented 6 months ago

Also please report which version you're using and ideally also if this happens for every table or just some special ones (where the column formats would be interesting)

adityass35b commented 6 months ago

Hello the version of tables I am using is 0.6.6 and I got the issue with one table. Screenshot_27 I have uploaded a screenshot of the error message, seems like a variable is null.

adityass35b commented 6 months ago

Nothing in nexcloud log nor in apache2 log

juliusknorr commented 6 months ago

I thought about this scenario, however I cannot reproduce any issue on 0.7.1 anymore:

Could you check if the issue still exists on 0.7.1 for you?

Manuel-Haas commented 2 weeks ago

The issue is still present in 0.8.1 (Brave-Browser on Debian 12, Nextcloud AIO Hub 9)

This is, what my json-console told me:

Table.vue:1 TypeError: Cannot read properties of null (reading 'replace')
    at s.getValueString (textLine.js:36:28)
    at exportTableMixin.js:29:44
    at Array.forEach (<anonymous>)
    at exportTableMixin.js:25:13
    at Array.forEach (<anonymous>)
    at o.downloadCsv (exportTableMixin.js:23:9)
    at o.downloadCSV (MainWrapper.vue:95:1)
    at pn (vue.runtime.esm.js:3033:30)
    at o.n (vue.runtime.esm.js:1832:20)
    at pn (vue.runtime.esm.js:3033:30)
mn @ vue.runtime.esm.js:3065
hn @ vue.runtime.esm.js:3057
dn @ vue.runtime.esm.js:3024
pn @ vue.runtime.esm.js:3040
n @ vue.runtime.esm.js:1832
pn @ vue.runtime.esm.js:3033
(anonymous) @ vue.runtime.esm.js:3732
download-csv @ Table.vue:1
pn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
pn @ vue.runtime.esm.js:3033
(anonymous) @ vue.runtime.esm.js:3732
click @ DataTable.vue:1
pn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
pn @ vue.runtime.esm.js:3033
(anonymous) @ vue.runtime.esm.js:3732
onClick @ actionText-fFcUPi2g.mjs:77
handleClick @ NcActionButton.mjs:131
pn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
o.85471.r._wrapper @ vue.runtime.esm.js:7500
Show 20 more frames
Show less
VM534:1 Uncaught SyntaxError: Unexpected token 'I', "Invalid credentials" is not valid JSON
    at JSON.parse (<anonymous>)
    at Zi.window._notify_push_ws.onmessage (NotificationsApp-CX_2Ib0T.chunk.mjs:34:23320)
Zi.window._notify_push_ws.onmessage @ NotificationsApp-CX_2Ib0T.chunk.mjs:34
VM536:1 Uncaught SyntaxError: Unexpected token 'I', "Invalid credentials" is not valid JSON
    at JSON.parse (<anonymous>)
    at Zi.window._notify_push_ws.onmessage (NotificationsApp-CX_2Ib0T.chunk.mjs:34:23320)
Zi.window._notify_push_ws.onmessage @ NotificationsApp-CX_2Ib0T.chunk.mjs:34
VM538:1 Uncaught SyntaxError: Unexpected token 'I', "Invalid credentials" is not valid JSON
    at JSON.parse (<anonymous>)
    at Zi.window._notify_push_ws.onmessage (NotificationsApp-CX_2Ib0T.chunk.mjs:34:23320)
Zi.window._notify_push_ws.onmessage @ NotificationsApp-CX_2Ib0T.chunk.mjs:34