zhuang0928 opened a new issue, #4487:
URL: https://github.com/apache/shenyu/issues/4487

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   Because a domain name is configured that starts with http,  for example  
httpdemo.big.com
   
   
   
   2023-03-16 18:10:09 
[shenyu-scheduled-upstream-task-1] ERROR 
org.apache.shenyu.admin.service.impl.UpstreamCheckService - 
upstream scheduled check error -------- 
   java.lang.ArrayIndexOutOfBoundsException: 1
        at 
org.apache.shenyu.common.utils.UpstreamCheckUtils.checkUrl(UpstreamCheckUtils.java:68)
        at 
org.apache.shenyu.common.utils.UpstreamCheckUtils.checkUrl(UpstreamCheckUtils.java:51)
        at 
org.apache.shenyu.admin.service.impl.UpstreamCheckService.check(UpstreamCheckService.java:281)
        at 
java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
        at 
org.apache.shenyu.admin.service.impl.UpstreamCheckService.scheduled(UpstreamCheckService.java:250)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   
   
   
   ### Expected Behavior
   
   url.startsWith("http")  should be changed to  url.startsWith("http://";) 
     
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   ShenYu version(s):
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to