This is an automated email from the ASF dual-hosted git repository.
liuhongyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 3aba6bce38 [fix] fix doc pulling error (#6016)
3aba6bce38 is described below
commit 3aba6bce38c42fd707cd6a07ebfebdafdd308d13
Author: aias00 <[email protected]>
AuthorDate: Wed Apr 30 21:47:03 2025 +0800
[fix] fix doc pulling error (#6016)
---
.../admin/service/manager/impl/LoadServiceDocEntryImpl.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java
index a440d0c6c0..ce17099203 100755
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java
@@ -97,9 +97,13 @@ public class LoadServiceDocEntryImpl implements
LoadServiceDocEntry {
LOG.info("load api document No service registered.");
return;
}
- final Set<UpstreamInstance> currentServices = new
HashSet<>(serviceList);
- LOG.info("load api document, serviceList={}",
JsonUtils.toJson(currentServices));
- pullSwaggerDocService.pullApiDocument(currentServices);
+ try {
+ final Set<UpstreamInstance> currentServices = new
HashSet<>(serviceList);
+ LOG.info("load api document, serviceList={}",
JsonUtils.toJson(currentServices));
+ pullSwaggerDocService.pullApiDocument(currentServices);
+ } catch (Exception e) {
+ LOG.error("load api document error", e);
+ }
}
@Override