Skip to content

Commit b5f27c8

Browse files
committed
failed to fetch acl:agentGroup url
1 parent d64843c commit b5f27c8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/acl-checker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ class ACLChecker {
151151
}
152152
const groupNodes = returnAcl.graph.statementsMatching(null, ACL('agentGroup'), null)
153153
const groupUrls = groupNodes.map(node => node.object.value.split('#')[0])
154-
await Promise.all(groupUrls.map(groupUrl => {
155-
this.requests[groupUrl] = this.requests[groupUrl] || this.fetch(groupUrl, returnAcl.graph)
156-
return this.requests[groupUrl]
154+
await Promise.all(groupUrls.map(async groupUrl => {
155+
try {
156+
const graph = await this.fetch(groupUrl, returnAcl.graph)
157+
this.requests[groupUrl] = this.requests[groupUrl] || graph
158+
} catch (e) {} // failed to fetch groupUrl
157159
}))
158160

159161
return returnAcl

0 commit comments

Comments
 (0)