FIWARE / tutorials.PEP-Proxy

:closed_book: FIWARE 404: Securing Microservices and IoT Devices with a PEP Proxy
https://fiware-pep-proxy.rtfd.io/
MIT License
7 stars 15 forks source link

Changes in request 16 #5

Closed dpatil-fw closed 3 years ago

dpatil-fw commented 3 years ago

This request https://github.com/FIWARE/tutorials.PEP-Proxy#onesix-request gave me errors

I had to include -H 'Content-Type: text/plain' \

curl -X POST \ 'http://localhost:7897/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=motion001' \ -H 'X-Auth-Token: {{X-Access-token}}' \ -H 'Content-Type: text/plain' \ -d 'c|1'

Also, the step to include the Service Group was also required as I got this error also: {"name":"DEVICE_GROUP_NOT_FOUND","message":"Couldn\t find device group for fields: [\"resource\",\"apikey\"] and values: {\"resource\":\"/iot/d\",\"apikey\":\"4jggokgpepnvsb2uv4s40d59ov\"}"}

Please add the Service Group request step prior to this request.