by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 16 16:39
    yunusual edited #767
  • Sep 16 16:38
    yunusual opened #767
  • Sep 15 02:52
    shabeebrp synchronize #619
  • Sep 15 02:52

    shabeebrp on acme-client

    Add unit test for FileKeyStore (compare)

  • Sep 02 22:30
    stevehu commented #765
  • Sep 02 22:30
    stevehu commented #765
  • Sep 02 22:29

    stevehu on 1.6.x

    fixes #765 add email registered… (compare)

  • Sep 02 22:28

    stevehu on issue765

    (compare)

  • Sep 02 22:28
    stevehu closed #765
  • Sep 02 22:28

    stevehu on master

    fixes #765 add email registered… (compare)

  • Sep 02 22:28
    stevehu closed #766
  • Sep 02 22:28
    stevehu opened #766
  • Sep 02 22:28

    stevehu on issue765

    fixes #765 add email registered… (compare)

  • Sep 02 22:27
    stevehu opened #765
  • Sep 01 20:12
    stevehu commented #763
  • Sep 01 20:12

    stevehu on 1.6.x

    fixes #763 add client authentic… (compare)

  • Sep 01 20:11
    stevehu commented #763
  • Sep 01 20:10

    stevehu on issue763

    (compare)

  • Sep 01 20:10
    stevehu closed #763
  • Sep 01 20:10

    stevehu on master

    fixes #763 add client authentic… (compare)

Steve Hu
@stevehu
You have everything running on the same localhost? in docker container?
Try to debug into it.
My understanding is that the virtual host doesn't support localhost. You need to update /etc/hosts to create some fake domain names first. One for your app, and one for the signin site.
went-li
@went-li
本地主机上运的
Steve Hu
@stevehu
Windows might have another way to setup DNS.
went-li
@went-li
.0:52259[ No Receiver [] -- [] -- []]
java.nio.channels.ClosedChannelException: null
at io.undertow.server.protocol.framed.AbstractFramedChannel.markWritesBroken(AbstractFramedChannel.java:878)
at io.undertow.server.protocol.framed.AbstractFramedChannel.flushSenders(AbstractFramedChannel.java:694)
at io.undertow.server.protocol.framed.AbstractFramedChannel.flush(AbstractFramedChannel.java:741)
at io.undertow.server.protocol.framed.AbstractFramedChannel.queueFrame(AbstractFramedChannel.java:734)
at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel.queueFinalFrame(AbstractFramedStreamSinkChannel.java:257)
at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel.shutdownWrites(AbstractFramedStreamSinkChannel.java:240)
at io.undertow.protocols.http2.Http2Channel.sendGoAway(Http2Channel.java:822)
at io.undertow.protocols.http2.Http2Channel.sendGoAway(Http2Channel.java:809)
at io.undertow.protocols.http2.Http2Channel.createChannelImpl(Http2Channel.java:508)
at io.undertow.protocols.http2.Http2Channel.createChannel(Http2Channel.java:342)
at io.undertow.protocols.http2.Http2Channel.createChannel(Http2Channel.java:68)
at io.undertow.server.protocol.framed.AbstractFramedChannel.receive(AbstractFramedChannel.java:462)
at io.undertow.client.http2.Http2ClientConnection$Http2ReceiveListener.handleEvent(Http2ClientConnection.java:392)
at io.undertow.client.http2.Http2ClientConnection$Http2ReceiveListener.handleEvent(Http2ClientConnection.java:387)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:950)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:931)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1176)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561)
00:37:51.239 [XNIO-1 I/O-3] DEBUG io.undertow.request handleBrokenSinkChannel - Closing HTTP2 channel to /192.168.0.103:6881 due to broken write side
java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50)
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:466)
at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:164)
at io.undertow.protocols.ssl.SslConduit.doWrap(SslConduit.java:917)
at io.undertow.protocols.ssl.SslConduit.flush(SslConduit.java:522)
at io.undertow.conduits.IdleTimeoutConduit.flush(IdleTimeoutConduit.java:399)
at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162)
at io.undertow.server.protocol.framed.AbstractFramedChannel.flushSenders(AbstractFramedChannel.java:682)
at io.undertow.server.protocol.framed.AbstractFramedChannel.flush(AbstractFramedChannel.java:741)
at io.undertow.server.protocol.framed.AbstractFramedChannel.queueFrame(AbstractFramedChannel.java:734)
at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel.queueFinalFrame(AbstractFramedStreamSinkChannel.java:257)
at io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel.shutdownWrites(AbstractFramedStreamSinkChannel.java:240)
at io.undertow.protocols.http2.Http2Channel.sendGoAway(Http2Channel.java:822)
at io.undertow.protocols.http2.Http2Channel.sendGoAway(Http2Channel.java:809)
at io.undertow.protocols.http2.Http2Channel.createChannelImpl(Http2Channel.java:508)
at io.undertow.protocols.http2.Http2Channel.createChannel(Http2Channel.java:342)
at io.undertow.protoc
Steve Hu
@stevehu
These are debug statements and they are normal.
went-li
@went-li
image.png
这是登录时报的~~看能不能从中看出什么问题
Steve Hu
@stevehu
No.
It is perfectly normal for me.
went-li
@went-li
image.png
这空指针了
Steve Hu
@stevehu
No. It is the client closed the connection. It is very normal in HTTP protocol.
went-li
@went-li
image.png
前端的呢~
都正常就是登录不了~~就很麻烦 了
Steve Hu
@stevehu
Like I said you shouldn't call 6881 port.
You are using localhost but the certificate is self-signed and you browser doesn't like it. Open the link in the browser and accept the risk first.
went-li
@went-li
这个是错误返回的吧~~前端我改成了网关的了呀~还有那里有~
Steve Hu
@stevehu
However, what you are doing doesn't make any sense to me.
Try to follow the tutorial step by step. Once you get it working, then you can start customization.
The url contains 6881 port numbers :)
went-li
@went-li
我没有找到这个6881是怎么来的
went-li
@went-li
login-view 、"startHttps": "HTTPS=true react-scripts start", 这个命令 用不了~~启用的http://localhost:3000
Steve Hu
@stevehu
It works for Linux. For windows, it is another syntax.
went-li
@went-li
?是什么呢 我没查到~
went-li
@went-li
image.png
还是差个什么环境吧
Steve Hu
@stevehu
Have you read the link I send to you just above your picture?
went-li
@went-li
是的这是看了~测了
Steve Hu
@stevehu
This is the syntax for windows. set HTTPS=true&&npm start
You don't have set
went-li
@went-li
ok https 启动好了~ 但依然没有与后台交互
Steve Hu
@stevehu
I don't know what is going on as you have customized and there is no virtual host available. I don't think it will work with localhost. You need to follow one of the tutorials first to make sure it works and then start customization.
went-li
@went-li
其实我并没有自定什么 ,只是将oauth2 和router 在IDEA 运行了,之前 login -view 直接不能在本地打包运的,后来改node 的版本 好了
Steve Hu
@stevehu
You cannot use localhost as the virtual host needs real domains.
I am using lightapi.net and signin.lightapi.net
or dev.lightapi.net and dev.signin.lightapi.net for dev environment.
went-li
@went-li
那这样~我前端的login-view 部署到另一台机上~~
总满足条件吧
Steve Hu
@stevehu
it doesn't matter if you use one computer or two computers.
virtual host means you can host two or more domains from one instance on one computer.
Here is my /etc/hosts.
#192.168.1.144 lightapi.net signin.lightapi.net

#192.168.1.144 ob.lightapi.net obsignin.lightapi.net

#192.168.1.144 login.lightapi.net

#192.168.1.144 dev.lightapi.net dev.signin.lightapi.net

#192.168.1.144 dev.lightapi.net

#192.168.1.144 codegen.lightapi.net
I don't know how to do it on windows.
went-li
@went-li
没怎么看懂但有点思路~偿试一下
对了还启动oauth2 -consle , 但是一样的不能访问~~~
image.png