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

bug: subscriber and publisher from examples are not working as expected. #2327

Closed
EmilIvanichkovv opened this issue Jan 2, 2024 · 0 comments · Fixed by #2328
Closed

bug: subscriber and publisher from examples are not working as expected. #2327

EmilIvanichkovv opened this issue Jan 2, 2024 · 0 comments · Fixed by #2328
Labels
bug Something isn't working

Comments

@EmilIvanichkovv
Copy link
Contributor

EmilIvanichkovv commented Jan 2, 2024

Problem

When trying to start subscriber and publisher from the examples folder they crash with unhandled exception

Impact

The impact is not significant, but it is good to have working examples.

To reproduce

Steps to reproduce:

  1. Make all examples with make example2
  2. Run ./build/subscriber

Expected behavior

The subscriber/publisher should be working, but I crashes with error indicated that a "node record is required"

Screenshots/logs

Result of running ./build/subscriber

NTC 2024-01-02 16:50:37.824+02:00 starting subscriber                        tid=132009 file=subscriber.nim:35 wakuPort=50000 discv5Port=8000
/some/nice/path/nwaku/examples/subscriber.nim(102) subscriber
/some/nice/path/nwaku/vendor/nim-chronos/chronos/internal/asyncfutures.nim(660) cb
Error: unhandled exception: Asynchronous task [setupAndSubscribe() at subscriber.nim:34] finished with an exception "LPError"!
Message: node record is required
Stack trace: /some/nice/path/nwaku/examples/subscriber.nim(102) subscriber
/some/nice/path/nwaku/examples/subscriber.nim(34) setupAndSubscribe
/some/nice/path/nwaku/vendor/nim-chronos/chronos/internal/asyncfutures.nim(378) futureContinue
/some/nice/path/nwaku/examples/subscriber.nim(44) setupAndSubscribe
/some/nice/path/nwaku/vendor/nim-results/results.nim(840) tryValue
 [FutureDefect]

nwaku version/commit hash

on master

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
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant