Closed radara09 closed 1 year ago
Are you accessing the webpage from a Secure Context?
Basically, either https:
or http://localhost
.
we accessing the webpage by http://localhost:3333
we also tested from http://10.0.2.15:3333
and still got no respond on the server
any recommendation to fix this?
thank you
This is OK because http://localhost
is a Secure Context.
This is not a Secure Context and many features of NDNts will not work. You should deliver your webpage over HTTPS with a valid certificate.
interest.appParameters = encoder.encode(app);
The issue is indeed related to ApplicationParameters field. The NDN protocol requires a ParametersSha256DigestComponent in the name that matches in ApplicationParameters field. However, you set the ApplicationParameters field without updating the name with ParametersSha256DigestComponent field, so that the Interest is dropped by the network.
The easiest way to update the name with a correct ParametersSha256DigestComponent is adding this line:
await interest.updateParamsDigest();
After that, the Interest should pass through the network successfully.
thanks its solved
I'm still trying to make development for (https://yoursunny.com/t/2020/NDNts-webpack-start/) this time I try to make server from python ndn and I got an issue where when I use appParameters the interest is not received on the server but if I don't use it, the server received the interest
this is my code on main.js
this is my producer.py code
thank you for your help