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

[Lemmy][Bug] Cannot unmarshal string into Go struct field #23

Closed
tedwardd opened this issue Jun 14, 2023 · 3 comments
Closed

[Lemmy][Bug] Cannot unmarshal string into Go struct field #23

tedwardd opened this issue Jun 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tedwardd
Copy link
Contributor

Configuring Neon Modem to connect to https://lemmy.sdf.org results in a blank feed. The following error logs are found in ~/.cache/neonmodem.log

{"level":"error","ts":1686705601.7717443,"caller":"aggregator/aggregator.go:77","msg":"aggregator error: json: cannot unmarshal string into Go struct field PostView.posts.subscribed of type bool\n","stacktrace":"github.com/mrusme/neonmodem/aggregator.(*Aggregator).ListPosts\n\t/home/runner/work/neonmodem/neonmodem/aggregator/aggregator.go:77\ngithub.com/mrusme/neonmodem/ui/views/posts.(*Model).refresh.func1\n\t/home/runner/work/neonmodem/neonmodem/ui/views/posts/posts.go:206\ngithub.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1\n\t/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.23.1/tea.go:247"}
{"level":"error","ts":1686705601.7717974,"caller":"posts/posts.go:209","msg":"[json: cannot unmarshal string into Go struct field PostView.posts.subscribed of type bool]","stacktrace":"github.com/mrusme/neonmodem/ui/views/posts.(*Model).refresh.func1\n\t/home/runner/work/neonmodem/neonmodem/ui/views/posts/posts.go:209\ngithub.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1\n\t/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.23.1/tea.go:247"}
{"level":"error","ts":1686705602.1112926,"caller":"aggregator/aggregator.go:77","msg":"aggregator error: json: cannot unmarshal string into Go struct field PostView.posts.subscribed of type bool\n","stacktrace":"github.com/mrusme/neonmodem/aggregator.(*Aggregator).ListPosts\n\t/home/runner/work/neonmodem/neonmodem/aggregator/aggregator.go:77\ngithub.com/mrusme/neonmodem/ui/views/posts.(*Model).refresh.func1\n\t/home/runner/work/neonmodem/neonmodem/ui/views/posts/posts.go:206\ngithub.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1\n\t/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.23.1/tea.go:247"}
{"level":"error","ts":1686705602.1114051,"caller":"posts/posts.go:209","msg":"[json: cannot unmarshal string into Go struct field PostView.posts.subscribed of type bool]","stacktrace":"github.com/mrusme/neonmodem/ui/views/posts.(*Model).refresh.func1\n\t/home/runner/work/neonmodem/neonmodem/ui/views/posts/posts.go:209\ngithub.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1\n\t/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.23.1/tea.go:247"}
@tedwardd tedwardd changed the title [Bug] aggregator.go cannot unmarshal string into Go struct field [Bug] Cannot unmarshal string into Go struct field Jun 14, 2023
@tedwardd tedwardd changed the title [Bug] Cannot unmarshal string into Go struct field [Lemmy][Bug] Cannot unmarshal string into Go struct field Jun 14, 2023
@mrusme
Copy link
Owner

mrusme commented Jun 14, 2023

This might be a side effect of #19 🤔

@mrusme mrusme added the bug Something isn't working label Jun 14, 2023
@mrusme
Copy link
Owner

mrusme commented Jun 15, 2023

I signed up on the instance you mentioned and subscribed to a community. I cannot seem to reproduce this issue:

screenshot_2023-06-15-092148

Do you have any insights on which community might cause this issue?

@tedwardd
Copy link
Contributor Author

Ah! you're correct, the issue seems to be fixed as of v1.0.3 which contains #19 but v1.0.2 did not. Closing.

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

2 participants