On 2018-08-13 23:55, Gregg Reynolds wrote:
On Mon, Aug 13, 2018, 4:35 PM yann <y...@tlabs.ac.za> wrote:

On 2018-01-08 23:28, Gregg Reynolds wrote:
On Jan 8, 2018 7:20 AM, "yann" <y...@tlabs.ac.za> wrote:

Hello there!

i am experimenting with iotivity node and iot-rest-api-server.
when running the server examples under ./js( server.get.js,
server.discoverable.js)
i keep on getting this issue: Resource retrieve failed: Access
denied

AFAIK this always means your creds and ACLs are out of sync. Which
can
happen with both secured and unsecured endpoints. You would have
to
provide more details for us to help.

G

Hello Gregg!

My Apologizes i have bee  away fro iotivity for quite some time!

i wont lie but i dont quite understand how the all security feature
of
iotivity is done! i though i just have not declare SECURED  false to

have unrestricted access to my resources. though working with
security
is best.

To be honest I have never understood why one would ever turn security
off. What's the point? Works great without security, yippee? Totally
not relevant.

Can't really help with details, but: double check sec flags on both
client and server, and double check all creds/ACLs. When I have run
into trouble in the past it's almost always sth like that, not a bug
in Iotivity.

Hth

now according tho iot-rest-ap-i-server, i did this

under iotivity-node built using(npm install)
i did not modify any script in iotivity-node(i assume it built with
SECURED false)
~/iotivity-node/js$ node server.discoverable.js

in my chrome browser i enter
MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN MALICIOUS:
http://192.168.8.103:8000/api/oic/res [1]
return json with this resource
.
.
.
{
"di": "670555b7-70d1-9b9e-6100-74379cfed015",
"href": "/a/fan",
"rt": [
"core.fan"
],
"if": [
"oic.if.baseline"
],
"p": {
"bm": 1,
"secure": false
},
"eps": [
{
"ep": "coap://MAILSCANNER WARNING: NUMERICAL LINKS ARE
OFTEN MALICIOUS: 192.168.8.103:35176 [2]",
"pri": 1
},
{
"ep": "coap://[fe80::20c:29ff:fea4:1c25]:51438",
"pri": 1
}
]
},
now in the chrome browser i enter this?

MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN MALICIOUS:

http://192.168.8.103:8000/api/oic/a/fan?di=670555b7-70d1-9b9e-6100-74379cfed015
[3]
return
Resource retrieve failed: retrieve: unexpected response


Links:
------
[1] http://192.168.8.103:8000/api/oic/res
[2] http://192.168.8.103:35176
[3]
http://192.168.8.103:8000/api/oic/a/fan?di=670555b7-70d1-9b9e-6100-74379cfed015

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9857): 
https://lists.iotivity.org/g/iotivity-dev/message/9857
Mute This Topic: https://lists.iotivity.org/mt/18970666/21656
Group Owner: iotivity-dev+ow...@lists.iotivity.org
Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to