Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to load resources error. #16

Open
HalilAlgan opened this issue Jun 26, 2022 · 5 comments
Open

failed to load resources error. #16

HalilAlgan opened this issue Jun 26, 2022 · 5 comments

Comments

@HalilAlgan
Copy link

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

@amrkhaledccd
Copy link
Owner

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

@HalilAlgan
Copy link
Author

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

@amrkhaledccd
Copy link
Owner

Yes, it is a problem

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

@HalilAlgan
Copy link
Author

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?

@amrkhaledccd
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants