Cannot read property 'join' of undefined - Note Sharing

Hi everyone,
Is anyone else seeing this ?
I have a number of notes I've never been able to share properly since sharing was introduced.
The message I get is "Cannot read property 'join' of undefined "
I have attached a screenshot of the browser page that Joplin server gives me + an example of a note that fails can be downloaded at the link below.
I'm on joplin/server 2.2.11-beta & Windows 2.2.7
Mat

Could you provide the stack trace from the server log?

Yes, where will I find it ?

docker-compose logs if you use docker-compose. I guess you can grep for "cannot read property"

Or I think docker logs if you use Docker only

root@XYZ:/var/www/html/joplin-server# docker-compose logs | grep "cannot read property"
root@XYZ:/var/www/html/joplin-server# docker-compose logs | grep "property"
app_1 | 2021-08-12 08:40:16: [error] App: TypeError: Cannot read property 'join' of undefined
root@XYZ:/var/www/html/joplin-server# docker-compose logs | grep "join"
app_1 | 2021-08-12 08:40:16: [error] App: TypeError: Cannot read property 'join' of undefined
root@XYZ:/var/www/html/joplin-server#

Could you add some context to get the line numbers? docker-compose logs | grep -C 10 "property"

root@XYZ:/var/www/html/joplin-server# docker-compose logs | grep -C 10 "property"
app_1 | 2021-08-12 08:39:57: App: GET /api/items/root:/99368d2f609c43638e3f71fe8101aaed.md:/content (3ms)
app_1 | 2021-08-12 08:39:57: App: PUT /api/items/root:/.resource/99368d2f609c43638e3f71fe8101aaed:/content (12ms)
app_1 | 2021-08-12 08:39:58: App: PUT /api/items/root:/99368d2f609c43638e3f71fe8101aaed.md:/content (13ms)
app_1 | 2021-08-12 08:39:59: App: GET /api/items/root:/:/delta (34ms)
app_1 | 2021-08-12 08:39:59: App: DELETE /api/items/root:/locks/sync_desktop_a0d0f3a3ed0546c2991cbff940610d15.json: (12ms)
app_1 | 2021-08-12 08:39:59: App: GET /api/share_users (1ms)
app_1 | 2021-08-12 08:39:59: App: GET /api/shares (2ms)
app_1 | 2021-08-12 08:39:59: App: GET /api/shares (1ms)
app_1 | 2021-08-12 08:40:06: ShareService: Starting maintenance...
app_1 | 2021-08-12 08:40:06: ShareService: Maintenance completed in 21ms
app_1 | 2021-08-12 08:40:16: [error] App: TypeError: Cannot read property 'join' of undefined
app_1 | at /home/joplin/packages/server/src/utils/joplinUtils.ts:208:34
app_1 | at Generator.next ()
app_1 | at fulfilled (/home/joplin/packages/server/dist/utils/joplinUtils.js:5:58)
app_1 | at runMicrotasks ()
app_1 | at processTicksAndRejections (internal/process/task_queues.js:97:5)
app_1 | 2021-08-12 08:40:16: App: GET /shares/L4f0ERBEK5oo6a7UUQiyJwYtpNfHMaSN (101ms)
app_1 | 2021-08-12 08:40:16: App: GET /css/bulma.min.css (391ms)
app_1 | 2021-08-12 08:40:16: App: GET /css/main.css (5ms)
app_1 | 2021-08-12 08:40:16: App: GET /css/fontawesome/css/all.min.css (2ms)
app_1 | 2021-08-12 08:40:16: App: GET /js/jquery.min.js (3ms)

Thanks for the info. It's strange that it fails there, but I'll try to replicate it with your JEX file.

1 Like

Fixed for me now in Server 2.3.7 - Many thanks :ok_hand: