Skip to content

Error encountered when using examples #28

Description

@Miao-code

Hello I'm new to ndn and python-ndn and now I ran into some errors in producer.py and comsumer.py in examples.

After installed NFD and add no_signature=True in producer.py's put_data function(otherwise there's default identity error), producer can successfully send packages to NFD but consumer can't receive it and has timeout error.

Could you explain how to correctly use these example codes?

Activity

  1. zjkmxy commented on Jul 14, 2021

    @zjkmxy
    Member

    Hello.

    otherwise there's default identity error

    You need to setup ndnsec. You can try to run

    ndnsec-key-gen /localhost/operator

    Could you explain how to correctly use these example codes?

    This is because by default NFD drops DATA packets without a signature. You can try digest_sha256=True to use a SHA256 hash if you don't want to sign it with a key.

  2. locked and limited conversation to collaborators on Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions