forscht / ddrive

Discord as a filesystem.
https://ddrive.forscht.dev
MIT License
498 stars 99 forks source link

Some Files not showing after uploading and also getting some errors described in the description section #116

Closed AseemGupta39 closed 3 months ago

AseemGupta39 commented 3 months ago

Hi,

First of all, thank you very much to the entire team for creating such an amazing project. I had considered developing something similar and even started working on it before discovering your repository—it felt like finding a goldmine!

I'm currently learning JavaScript and would love to contribute to your repository once I’ve got a better grasp of it. In the meantime, I encountered a few issues while testing:

1) Some files upload successfully but do not appear in the explorer, even after multiple attempts and trying different folders.

2) I encountered a HeadersTimeoutError with the following details: {"level":50,"time":1723570557634,"err":{"type":"HeadersTimeoutError","message":"Headers Timeout Error","stack":"HeadersTimeoutError: Headers Timeout Error\n at Timeout.onParserTimeout [as callback] (E:\Repos\ddrive\node_modules\undici\lib\client.js:906:28)\n at Timeout.onTimeout [as _onTimeout] (E:\Repos\ddrive\node_modules\undici\lib\timers.js:18:13)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","name":"HeadersTimeoutError","code":"UND_ERR_HEADERS_TIMEOUT","reqId":"req-p"},"msg":"Headers Timeout Error"} I tried increasing REQUEST_TIMEOUT to 180000, but the issue persists.

3)I encountered a DatabaseError with the following details: {"err":{"type":"DatabaseError","message":"insert into \"directory\" (\"name\", \"parentId\", \"type\") values ($1, $2, $3) returning - insert or update on table \"directory\" violates foreign key constraint \"directory_parentid_foreign\"","stack":"error: insert into \"directory\" (\"name\", \"parentId\", \"type\") values ($1, $2, $3) returning - insert or update on table \"directory\" violates foreign key constraint \"directory_parentid_foreign\"\n at Parser.parseErrorMessage (E:\Repos\ddrive\node_modules\pg-protocol\dist\parser.js:287:98)\n at Parser.handlePacket (E:\Repos\ddrive\node_modules\pg-protocol\dist\parser.js:126:29)\n at Parser.parse (E:\Repos\ddrive\node_modules\pg-protocol\dist\parser.js:39:38)\n at TLSSocket. (E:\Repos\ddrive\node_modules\pg-protocol\dist\index.js:11:42)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","length":306,"name":"error","severity":"ERROR","code":"23503","detail":"Key (parentId)=(c2690be9-2ce5-4a30-bfd4-aa1e4f55679c) is not present in table \"directory\".","schema":"public","table":"directory","constraint":"directory_parentid_foreign","file":"ri_triggers.c","line":"2608","routine":"ri_ReportViolation","reqId":"req-e"},"msg":"insert into \"directory\" (\"name\", \"parentId\", \"type\") values ($1, $2, $3) returning * - insert or update on table \"directory\" violates foreign key constraint \"directory_parentid_foreign\""}

4) I also encountered a "Connection Error: Connection ended unexpectedly."

Thank you for your time, and I look forward to contributing once I’m more proficient with JavaScript!

If you need any additional information, please let me know, and I will respond as soon as I can.