Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting memo resources fails #4473

Open
szethh opened this issue Mar 6, 2025 · 1 comment
Open

Setting memo resources fails #4473

szethh opened this issue Mar 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@szethh
Copy link

szethh commented Mar 6, 2025

Describe the bug

Hi! I'm trying to import some data from an external source. I'm using python + the api, and so far I have been able to import the content of the memos, upload resources, but I cannot link them together.

Steps to reproduce

What I have tried:

  1. Include the resource list when first POSTing the memo (CreateMemo)
  2. Including the resources list when updating (PATCHing) the memo (UpdateMemo)
  3. Linking the resources & the memo together using the SetMemoResources endpoint.

For all of those, I get the following error:

{
  "code":13,
  "message":
  "runtime error: invalid memory address or nil pointer dereference",
  "details":[]
}

Note that creating the resources is not the problem (I can see them in the resources tab under "unused resources"). But linking them to a memo seems to cause the error. I have looked at similar issues in this repo but I could not find a fix.

The version of Memos you're using

v0.24.0

Screenshots or additional context

No response

@szethh szethh added the bug Something isn't working label Mar 6, 2025
@szethh
Copy link
Author

szethh commented Mar 6, 2025

Okay, i just saw in

_, err := s.SetMemoResources(ctx, &v1pb.SetMemoResourcesRequest{
that CreateMemo just calls SetMemoResources under the hood. I've never used go so I'm not sure what could be causing the error in there though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant