第一次运行vaadin-starter时,提供的proxyUrl与格式协议不匹配



请帮忙,我是第一次学习vaadin,

当一个运行应用程序时,我有这个错误:

: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [com.vaadin.flow.server.ServiceException: java.lang.IllegalArgumentException: Provided proxyUrl does not match the format protocol://user:password@server:port nor protocol://server:port] with root cause
java.lang.IllegalArgumentException: Provided proxyUrl does not match the format protocol://user:password@server:port nor protocol://server:port
at com.vaadin.flow.server.frontend.installer.ProxyConfig$Proxy.<init>(ProxyConfig.java:193) ~[flow-server-23.0.4.jar:23.0.4]
: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [com.vaadin.flow.server.ServiceException: java.lang.IllegalArgumentException: Provided proxyUrl does not match the format protocol://user:password@server:port nor protocol://server:port] with root cause
java.lang.IllegalArgumentException: Provided proxyUrl does not match the format protocol://user:password@server:port nor protocol://server:port
at com.vaadin.flow.server.frontend.installer.ProxyConfig$Proxy.<init>(ProxyConfig.java:193) ~[flow-server-23.0.4.jar:23.0.4]

好吧,您的代理配置有缺陷(正如错误消息中所说(。检查它看起来像这样:

proxy=http://user:password@172.17.0.1:3128
https-proxy=http://user:password@172.17.0.1:3128

https://vaadin.com/docs/latest/flow/configuration/node-js有更深入的解释。

最新更新