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)

went-li
@went-li
我在网关服务里logback.xml开了debug
Steve Hu
@stevehu
Some details are in trace level.
went-li
@went-li
oauth 要不要全都注册 consul
因为现在还是登录不了503
Steve Hu
@stevehu
all other services need to do that. The light-router doesn't need to as it has a static IP or domain name.
As I said, you need to write down what you have done so that I can help you to verify. Now, I don't know what you are doing :)
went-li
@went-li
好的。1.启动了所有oauth2 服务,没有注册consul ,2启用了touter ,配置用的是local-protal ,启动login-view ,加了cors 就是我发给你的那些
image.png
Steve Hu
@stevehu
not register to the consul, how the light-router find the light-oauth2 services? That might be the reason you got 503
went-li
@went-li
好的~注册后回给你~谢谢了~
went-li
@went-li
还是不能转发过去~TypeError: NetworkError when attempting to fetch resource.
Steve Hu
@stevehu
which resource you are trying to access? URL?
went-li
@went-li
登录呀~~
登录都不行
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.