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

Non-utf8 string in "error creating torrent model" #37

Closed
viraptor opened this issue Oct 10, 2023 · 2 comments · Fixed by #21
Closed

Non-utf8 string in "error creating torrent model" #37

viraptor opened this issue Oct 10, 2023 · 2 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@viraptor
Copy link

Have you checked the roadmap on the website, and existing issues, before opening a dupllcate issue?
Yes

Describe the bug

Occasionally this fails with a stacktrace.

ERROR   dht_staging     staging/staging.go:301  error creating torrent model: invalid utf8 string
github.com/bitmagnet-io/bitmagnet/internal/dht/staging.(*staging).Respond
        github.com/bitmagnet-io/bitmagnet/internal/dht/staging/staging.go:301
github.com/bitmagnet-io/bitmagnet/internal/dht/crawler.(*crawler).handleStagingRequest.func1
        github.com/bitmagnet-io/bitmagnet/internal/dht/crawler/handle_staging_request.go:40
github.com/bitmagnet-io/bitmagnet/internal/dht/crawler.(*crawler).handleStagingRequest
        github.com/bitmagnet-io/bitmagnet/internal/dht/crawler/handle_staging_request.go:77

To Reproduce
Steps to reproduce the behavior:

Unknown

Expected behavior

This error appears without any context.
If this is something that the operator can fix, the error should contain enough context to do that.
If this is a problem with an incoming packet that happens to have non-utf8 strings and can't be fixed, then maybe it can be degraded to a DEBUG/INFO without a stacktrace.

General (please complete the following information):

  • Bitmagnet version: 0.0.7
  • OS and version: nixos
  • Browser and version (if issue is with WebUI):
@viraptor viraptor added the bug Something isn't working label Oct 10, 2023
@mgdigital
Copy link
Collaborator

Hi @viraptor , that error simply means one of the meta infos we found was malformed and so we discarded it. The log entry needs downgrading to debug level.

@mgdigital
Copy link
Collaborator

Hi @viraptor , this is fixed in the linked PR which will be merged shortly.

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

Successfully merging a pull request may close this issue.

2 participants