This is an automated email from the ASF dual-hosted git repository. liuhongyu pushed a commit to branch fix/fix_doc_pull_error in repository https://gitbox.apache.org/repos/asf/shenyu.git
commit 4da8231ae83fbf90cbca767936743756739c4908 Author: liuhy <liuhon...@apache.org> AuthorDate: Wed Apr 30 16:38:57 2025 +0800 [fix] fix doc pulling error --- .../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