notea icon indicating copy to clipboard operation
notea copied to clipboard

Trying to run at desk

Open Ecleptic opened this issue 3 years ago • 9 comments

When running the application, I get this error and googling does not seem to help me get around it.

{
  name: 'NoSuchKey',
  message: 'The specified key does not exist.',
  status: 500,
  stack: 'NoSuchKey: The specified key does not exist.\n' +
    '    at deserializeAws_restXmlNoSuchKeyResponse (~/projects/notea/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:6154:23)\n' +
    '    at deserializeAws_restXmlGetObjectCommandError (~/projects/notea/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:4353:25)\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:97:5)\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js:11:20\n' +
    '    at async StandardRetryStrategy.retry (~/projects/notea/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js:51:46)\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/flexibleChecksumsMiddleware.js:56:20\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:6:22\n' +
    '    at async StoreS3.getObject (webpack-internal:///(api)/./libs/server/store/providers/s3.ts:82:28)'
}

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

That's interesting. What object storage software are you using? I'm guessing it could be fixed by changing line 18 in libs/server/store.ts to include err.name, but I may be entirely wrong.

tecc avatar Sep 14 '22 20:09 tecc

All I've done is the steps in the readme: docker-compose up -d yarn dev

I assume it's a volume permission issue? I am not terribly familiar with docker.

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

changing line 18 to include err.name did help me create a file, however typing in the body got me a new error. Which I am looking up now. SCR-20220914-lhi

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

What version of node do you use?

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

I use node 16.

tecc avatar Sep 14 '22 20:09 tecc

That wasn't it. 😆

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

https://github.com/ueberdosis/tiptap/issues/577

This error references the issue. and this did work when I did a yarn install

Ecleptic avatar Sep 14 '22 20:09 Ecleptic

we may need to update node packages to address this.

Ecleptic avatar Sep 14 '22 21:09 Ecleptic

Perhaps. I'll have to properly look into it later, since I'm slightly busy at the moment.

tecc avatar Sep 14 '22 21:09 tecc

Okay, update on this issue: Since I can't test it myself at this moment, I wonder if downgrading prosemirrror-model to ^1.8.1 - I perused a bit through the lockfiles of both rich-markdown-editor and Notea, and it might be caused by having a too new version for the editor library. The main reason I'm suggesting this is that rich-markdown-editor has been archived for nearly a year, and as such may not work with the later versions of Prosemirror. If not that, it might be that the prosemirror versions used are incompatible with each other. This is all speculative though.

tecc avatar Sep 22 '22 08:09 tecc

Quick update on this issue: I tested it with the changes I made in #146, and it works fine.

tecc avatar Sep 24 '22 12:09 tecc