rampatra / jbot

Make Slack and Facebook Bots in Java.
GNU General Public License v3.0
1.2k stars 352 forks source link

'The URL couldn't be validated. Please try again' in jbot example #156

Open OscarVanL opened 4 years ago

OscarVanL commented 4 years ago

Hi, I'm at a loss as to why this isn't working.

I've port forwarded to port 8080 and am using the same Verify Token as in application.properties. If I enter the address as intended, https://, this gives "The URL couldn't be validated. Please try again.".

If I enter the port number, however (I know this is not necessary), this gives an error in the console. The takeaway is that the application is receiving whatever Facebook is sending, but still the callback URL verification fails.

See this gif: 2019-09-13_23-56-48

Do you know why my validation is failing? I also tried the localtunnel method and this also did not work.

rampatra commented 4 years ago

A couple of things. If you're using port 8080 then you have to specify the port as the default port for http is 80. Also, if you're using https then the default port is 443. So, if your application isn't running on the default port you need to specify the port.