Im working with Rails 5 and integrate Action cable for chat system, its working fine on local, also working fine in production mode but not working on AWS elastic Beanstalk, please help me to resolve this problem, many thanks.
Following errors has coming:
WebSocket connection to 'ws://dreamermade-staging.qdmpcqqmnw.us-west-2.elasticbeanstalk.com/cable' failed: Error during WebSocket handshake: Unexpected response code: 404
Related
I am using the Savon Gem in my Rails 5 app.
Everything was working fine and suddenly I get an error:
The requested URL /soap/IHubInterfaces was not found on this server.
Apache/2.4.7 (Ubuntu) Server at www.URL.com Port 443
I have a GUI tool called SoapUI and with this tool everything works. Like I mentioned my Rails app also worked until 2 weeks ago.
Any ideas how I can start debugging?
I'm deploying a simple Rails 5 app (https://morseaa.herokuapp.com/) to Heroku and cannot seem to get websockets to function correctly. The app works perfectly fine on local host, but whenever websockets functionality is invoked on the heroku deployment, I get the following error:
WebSocket connection to 'wss://morseaa.herokuapp.com/cable' failed: Error during WebSocket handshake: Unexpected response code: 404
As in rails 5, action cable can be used as a layer above the application to provide persistent connection (WebSocket). So I created an application and tested locally then deployed it to Google AppEngine flexible environment Ruby runtime. the application runs fine except the WebSocket part.
I checked the console in the browser and found that it keeps giving this error:
WebSocket connection to 'ws://mydomain.com/cable' failed: Error during WebSocket handshake: Unexpected response code: 400
I am developing rails 4 application with private_pub for chatting apps. Its work perfect in local. But when move code from local to Heroku chatting not working due to below error:
https://XXXXXX-XXXXXXX-8XXX6.herokuapp.com/faye.js Failed to load resource: the server responded with a status of 404 (Not Found)
Actually in local working with http:// and on Heroku with https:// so may be issue but not found. Any one have a idea on it.
Thanks
Have you created a separated faye app on heroku? If not it's described here: http://www.thegreatcodeadventure.com/hello-or-building-a-chatting-app-with-rails/. Btw I changed from faye to pusher in which case I don't have to deploy a second app on heroku.
When I deploy my rails app in jenkins I am getting 502 gateway error for sending form data. But when I run the same in local with all three environments it is working properly.
Updated Question:
My rails app is working properly in local machine in all test,dev,prod environment.
But when I deploy it into Jenkins CI I am getting the above error for form data submission to another server.
The problem is I configured my unicorn server
timeout 5
but the response from the service call taking time so increased time
timeout 15
now it is working