memos icon indicating copy to clipboard operation
memos copied to clipboard

cant create memo with picture

Open kevinwenyu opened this issue 1 year ago • 4 comments

Describe the bug

when i create a memo with picture, the picture cannot be upload, and the server fault is shown like below:


Server profile data: /var/opt/memos dsn: /var/opt/memos/memos_prod.db addr: port: 5230 mode: prod driver: sqlite version: 0.20.0 metric: true

███╗ ███╗███████╗███╗ ███╗ ██████╗ ███████╗ ████╗ ████║██╔════╝████╗ ████║██╔═══██╗██╔════╝ ██╔████╔██║█████╗ ██╔████╔██║██║ ██║███████╗ ██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██║ ██║╚════██║ ██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║╚██████╔╝███████║ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ Version 0.20.0 has been started on port 5230

See more in: 👉Website: https://usememos.com 👉GitHub: https://github.com/usememos/memos

2024-02-18T21:39:46.080Z INFO jobs/presign_link.go:26 links pre-signed {"duration": "71.670992ms"} 2024-02-18T21:39:52Z latency=11.20269ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=21.358748ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=22.487384ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:52Z latency=107.174654ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:39:52Z latency=111.136117ms method=POST uri=/memos.api.v2.MemoService/ListMemos status=200 error= 2024-02-18T21:39:53Z latency=1.019278ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:39:53Z latency=2.228444ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:40:03Z latency=2.969106ms method=POST uri=/memos.api.v2.UserService/ListUserAccessTokens status=200 error= 2024-02-18T21:40:06Z latency=311.118µs method=GET uri=/setting status=200 error= 2024-02-18T21:40:07.781Z WARN v1/system.go:142 Unknown system setting name {"setting name": "openai-config"} github.com/usememos/memos/api/v1.(*APIV1Service).GetSystemStatus /backend-build/api/v1/system.go:142 github.com/usememos/memos/api/v1.(*APIV1Service).Register.func4.JWTMiddleware.1 /backend-build/api/v1/jwt.go:66 github.com/usememos/memos/api/v1.(*APIV1Service).Register.RateLimiterWithConfig.func6.1 /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/rate_limiter.go:148 github.com/labstack/echo/v4.(*Echo).add.func1 /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:582 github.com/labstack/echo/v4/middleware.StaticWithConfig.func1.1 /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/static.go:167 github.com/labstack/echo/v4/middleware.echoHandlerFuncWrapper.ServeHTTP /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/timeout.go:164 net/http.(*timeoutHandler).ServeHTTP.func1 /usr/local/go/src/net/http/server.go:3596 2024-02-18T21:40:07Z latency=900.624µs method=GET uri=/api/v1/status status=200 error= 2024-02-18T21:40:07Z latency=1.114318ms method=POST uri=/memos.api.v2.AuthService/GetAuthStatus status=200 error= 2024-02-18T21:40:08Z latency=1.773955ms method=POST uri=/memos.api.v2.UserService/GetUserSetting status=200 error= 2024-02-18T21:40:08Z latency=1.202084ms method=POST uri=/memos.api.v2.InboxService/ListInboxes status=200 error= 2024-02-18T21:40:08Z latency=1.309377ms method=POST uri=/memos.api.v2.UserService/ListUserAccessTokens status=200 error= 2024-02-18T21:40:12Z latency=2.399518ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:40:12Z latency=68.643638ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error= 2024-02-18T21:40:12Z latency=74.718017ms method=POST uri=/memos.api.v2.MemoService/ListMemos status=200 error= 2024-02-18T21:40:12Z latency=2.305942ms method=POST uri=/memos.api.v2.MemoService/GetUserMemosStats status=200 error= 2024-02-18T21:40:12Z latency=1.728158ms method=POST uri=/memos.api.v2.TagService/ListTags status=200 error=

Steps to reproduce

  1. click picture icon.
  2. select upload local picture
  3. click create, then the fault occures.

The version of Memos you're using

20.0

Screenshots or additional context

Snipaste_2024-02-18_22-46-25

kevinwenyu avatar Feb 18 '24 21:02 kevinwenyu

The logs provided above are unrelated to error. Please open the browser console panel and check the error logs.

boojack avatar Feb 19 '24 01:02 boojack

The logs provided above are unrelated to error. Please open the browser console panel and check the error logs.

i found the error: Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) Snipaste_2024-02-19_22-23-52

I tried to compress my jpg to a small size then it worked. it seems that the jpg cannot be over 1M.

kevinwenyu avatar Feb 19 '24 21:02 kevinwenyu

........邮件已收到.......

aisvoyage avatar Feb 19 '24 21:02 aisvoyage

Issue is not in English. It has been translated automatically.


........mail received.......

Issues-translate-bot avatar Feb 19 '24 21:02 Issues-translate-bot

Maybe blocked by nginx?

boojack avatar Feb 21 '24 02:02 boojack

correct. i checked my Nginx configuration, it's a config problem. thanks a lot.

On Wed, Feb 21, 2024 at 3:55 AM boojack @.***> wrote:

Maybe blocked by nginx?

— Reply to this email directly, view it on GitHub https://github.com/usememos/memos/issues/2978#issuecomment-1955782377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFEJEBVUBS2Q55NVKBNCHDYUVOZVAVCNFSM6AAAAABDOO4AR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVG44DEMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>

kevinwenyu avatar Feb 21 '24 21:02 kevinwenyu