bot-dialogflow icon indicating copy to clipboard operation
bot-dialogflow copied to clipboard

Unable to deploy to Heroku

Open averykohhc opened this issue 7 years ago • 3 comments

Hi,

I've tried to deploy to heroku but it isn't working. I am getting this polling error below in the console and do not know how to change the 8010 to a port that works.

polling-xhr.js:264 GET http://localhost:8010/socket.io/?EIO=3&transport=polling&t=MIEd4F3 0 ()

I tried replacing all the 8010 ports to be the same as the one heroku has assigned in the www file process.env.PORT but it gives a different error saying that the port is already in use. Please let me know what I need to change in both client and server code for it to be deployed to heroku.

I really appreciate your time and help!

averykohhc avatar Jul 12 '18 13:07 averykohhc

I am able to manage this issue by changing the convo.js file and changing the localhost to the Heroku domain. but still, I am not able to see the Heroku thing working. same code (localhost), is working fine but when using Heroku, it is stuck. Able to deploy but not able to receive response from Dialogflow

saileshrepo avatar Aug 25 '18 07:08 saileshrepo

any resolution on this to either of you? having same issues my side with heroku deploy workflow from github

danpillay87 avatar Feb 11 '19 18:02 danpillay87

var socket = io.connect(window.location.hostname + ':8010'); should be the thing. This line uses the domain assigned by Heroku.

danicrg avatar May 19 '19 10:05 danicrg