104 Members
OS.js Matrix Channel (https://www.os-js.org/)1 Servers

Load older messages

Timestamp Message
20 Nov 2019
23:22:02@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) In terms of an OS.js application (the example i linked), it's that simple.
23:22:27@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)You place the stuff you want to load inside the data directory, build the app, launch it -- it works just like a regular web app.
23:22:39@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) But now it's inside a window in OS.js.
23:23:01@gitter_f2pwn:matrix.orgX (Gitter)then I might have understood something bad, since I thought there was way more complexity
23:23:10@gitter_f2pwn:matrix.orgX (Gitter) maybe after some sleep and re-reading this convo I'll figure it out
23:23:55@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Alright.
23:24:05@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Gotta get some sleep as well.
23:25:40@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) I'm here if you have any more questions.
23:25:58@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)(GMT+1 timezone FYI)
23:26:26@gitter_f2pwn:matrix.orgX (Gitter)same timezone
23:26:37@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter):ok_hand:
21 Nov 2019
15:45:29@gitter_josephjeno:matrix.orgjosephjeno (Gitter) Hi @andersevenrud, been testing out the changes you made yesterday to groups and it's working really great. There is one error I'm getting when starting the server which I think is unrelated:
15:46:22@gitter_josephjeno:matrix.orgjosephjeno (Gitter)
TypeError: Cannot read property 'indexOf' of undefined
at arr.every.g (C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\utils\vfs.js:76:62)
at Array.every (<anonymous>)
at validateAll (C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\utils\vfs.js:76:43)
at validateNamedGroups (C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\utils\vfs.js:86:7)
at validateGroups (C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\utils\vfs.js:108:24)
at C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\utils\vfs.js:138:9
at Object.realpath (C:\Users\JJeno\Documents\GitHub\webgs\node_modules\@osjs\server\src\vfs.js:128:62)
15:48:13@gitter_josephjeno:matrix.orgjosephjeno (Gitter)line 121 of server\src\utils\vfs.js is undefined because req.session.user is {}
15:48:46@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Is that the complete stack trace ?
15:49:26@gitter_josephjeno:matrix.orgjosephjeno (Gitter)I only receive the error when a server mountpoint has a groups attribute in config.js, otherwise it validates true
15:49:58@gitter_josephjeno:matrix.orgjosephjeno (Gitter)I can probably get more, let me check
15:51:01@gitter_josephjeno:matrix.orgjosephjeno (Gitter)I can probably get more, let me check
15:51:45@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) The check that's erroring for you a part of the request cycle, so it's a bit strange you get it on boot.
15:56:24@gitter_josephjeno:matrix.orgjosephjeno (Gitter)ahh..
15:56:49@gitter_josephjeno:matrix.orgjosephjeno (Gitter)this is in start() of our custom ServiceProvider
15:57:07@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter):)
15:57:07@gitter_josephjeno:matrix.orgjosephjeno (Gitter)
    // Creates shared directory if doesn't exist
      .then(realpath => fs.ensureDir(realpath))
15:57:38@gitter_josephjeno:matrix.orgjosephjeno (Gitter)probably responsible?
15:57:48@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) Let's see here
15:58:57@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter) Yeah, looks like it. Add .realpath('shared:/', { groups: [] }) to work around that for the time being.
15:59:10@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Might wanna open an issue on that in osjs-server, because it really should not fail there :)
16:00:23@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Not 100% sure that change will work around it though, heh.
16:03:05@gitter_josephjeno:matrix.orgjosephjeno (Gitter)ahh yes that works! Putting the actual group name in the brackets does the trick. Thanks a ton man
16:03:18@gitter_andersevenrud:matrix.orgAnders Evenrud (Gitter)Nice :)

There are no newer messages yet.

Back to Room List