One-to-One-WebSockets-Chat icon indicating copy to clipboard operation
One-to-One-WebSockets-Chat copied to clipboard

failed to load resources error.

Open HalilAlgan opened this issue 2 years ago • 5 comments

hello i have one last question about this project. i cant connect sock js with spring web socket. it says failed to load resources with 500 or 401 error status codes as you see in screen shot. thank you. 500 error

HalilAlgan avatar Jun 26 '22 20:06 HalilAlgan

Please make sure that chat-service and auth-service are up and running

amrkhaledccd avatar Jun 26 '22 20:06 amrkhaledccd

i put them in one service not two different service. Is this problem?

HalilAlgan avatar Jun 26 '22 20:06 HalilAlgan

Yes, it is a problem

Because they are running on two different ports. Chat Service -> 8080 Auth Service -> 8081

amrkhaledccd avatar Jun 26 '22 20:06 amrkhaledccd

hello, I didnt clone your project, I just use this chat-app codes in my project, i didnt seperate them in different services. just one application.yml, one pom.xml. so do i have to use chat app in different ports or one port enough for everything. Eventually, in deployment there will be one website and one port will be better. So in this stiation, what can be problem about loading resources?

HalilAlgan avatar Jun 26 '22 21:06 HalilAlgan

Please check and change this file according to your new configuration https://github.com/amrkhaledccd/One-to-One-WebSockets-Chat/blob/master/jwt-social-login-client/src/util/ApiUtil.js

Note: I can't support you if you have different configuration, I don't know exactly what you have done.

amrkhaledccd avatar Jun 26 '22 21:06 amrkhaledccd