Skip to content

Commit 3aba6bc

Browse files
authored
[fix] fix doc pulling error (apache#6016)
1 parent b4e8943 commit 3aba6bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ public synchronized void loadApiDocument() {
9797
LOG.info("load api document No service registered.");
9898
return;
9999
}
100-
final Set<UpstreamInstance> currentServices = new HashSet<>(serviceList);
101-
LOG.info("load api document, serviceList={}", JsonUtils.toJson(currentServices));
102-
pullSwaggerDocService.pullApiDocument(currentServices);
100+
try {
101+
final Set<UpstreamInstance> currentServices = new HashSet<>(serviceList);
102+
LOG.info("load api document, serviceList={}", JsonUtils.toJson(currentServices));
103+
pullSwaggerDocService.pullApiDocument(currentServices);
104+
} catch (Exception e) {
105+
LOG.error("load api document error", e);
106+
}
103107
}
104108

105109
@Override

0 commit comments

Comments
 (0)