Closed j-steinbach closed 9 months ago
It seems like you do not have a Solid server running with the Solid Notifications Protocol (more specifically WebSocketChannel2023) on port 3000.
Therefore, the DemoUCPAgent will never be notified when you send a policy to the policy container.
Have you tried setting up a CSS within the directory with following command npx community-solid-server -c memory-no-setup.json
?
This memory config sure has the required notification protocol activated with CSS v6.0.0
Not sure what I do wrong.
npx community-solid-server -c memory-no-setup.json
to start the servernpx ts-node indexUCP.ts
npx ts-node UcpSendPolicy.ts
and get reported that 2023-06-28T12:46:50.153Z Duration policy: https://woutslabbinck.solidcommunity.net/profile/card#me now has access to http://localhost:3000/ldes for PT30S
We've pinned it down to a problem with setting up the websocketconnection with the CSS. More testing still has to be done to really pinpoint the problem. The error was coming from the following package: https://www.npmjs.com/package/solid-notification-client
After an offline discussion, it suddenly works now for @j-steinbach. We'll re-open and further investigate if the problem appears again as currently we cannot reproduce it again.
When running CSS v6.0.1, I got the same error. The reason for failure was a difference in the
v6.0.0. content:
<http://localhost:3000/.well-known/solid> rdf:type pim:Storage ;
notify:subscription <http://localhost:3000/.notifications/WebHookChannel2023/> ,
<http://localhost:3000/.notifications/WebSocketChannel2023/> .
v6.0.1 content:
<http://localhost:3000/> rdf:type pim:Storage ;
notify:subscription <http://localhost:3000/.notifications/WebHookChannel2023/> ,
<http://localhost:3000/.notifications/WebSocketChannel2023/> .
And in the Solid Notification Client, a query was executed on both notify:subscription
and the storage description URL.
A fix that just queries for the notify:subscribe
triples will solve this.
Fixed by bumping the solid notification client (https://github.com/SolidLabResearch/Solid-Agent/commit/ae327826cb5af12ab6637c34fd6f95dc161df485)
I am trying to get the UCP configuration working based on the guide, but it fails on
npx ts-node indexUCP.ts
.Even though the above fails with an error, I still am able to exectute
UcpSendPolicy.ts