-
Notifications
You must be signed in to change notification settings - Fork 50
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
Not able to connect to webhook #19
Comments
Hi @leonardodma, Two quick questions:
|
Hello @tawn33y, thank you for answering so fast! I'm using the The server starts running on port 3000 and sends the "hello world" message, just like in the tutorial. Then, I run |
|
It does appear "🚀 Server running on port 3000...". In my browser accessing my Ngrok's URL, |
This shows that it's running fully OK locally, and ngrok is working as well. Can you share the url you're providing in the App dashboard? I hope it's something like |
It is a little bit different (probably because of the Ngrok version): |
Ah, seems like there is a new feature that ngrok has introduced to show a browser warning on visiting each page, requiring a user to confirm "Visit page" before loading the page: https://blog.ngrok.com/posts/fighting-abuse-on-the-ngrok-platform I think what's happening is that Facebook is trying to hit your ngrok endpoint and gets served by html content requiring confirmation, which obviously means that Facebook will fail to verify your webhook. I wasn't aware that ngrok introduced this. I'm personally using ngrok version Something like: docker run -it ngrok/ngrok:3.0.3-debian http 3000 And then try to verify the webhook. Curious to see if this works. |
How about this: docker run --net=host -it ngrok/ngrok:3.0.3-debian http 3000 |
Running the following command, I was able to connect to the port, but the verification is still happening :( docker run --net=host -it -e NGROK_AUTHTOKEN=[NGROK_TOKEN] ngrok/ngrok:3.0.3-debian http 3000 |
What url are you getting now? Can you share? Need to confirm if I'm seeing the "Verify site" browser warning page. Also, what error are you getting now? |
I'm getting this URL: |
Quick question: can you try running this without supplying the auth token? |
Sure! |
I'm starting to feel that this might be quicker via a call. Feel free to send a calendar invite for tomorrow. I will respond accordingly if the time doesn't work for me. |
Proposed Solutions(for future reference) There are 4 solutions off the top of my mind for fixing this:
Using an older version of ngrokRunning ngrok via downloaded zip
Running ngrok via docker
Seems a person may need to pay for ngrok or localtunnel for now; at least until Facebook allows the use of custom headers in requests. Any other solutions are most welcome. Will mark this as closed for now. |
Hi there! I had no success trying with older version of ngrok (tried 3.0.1) and with ngrok alternatives that doesn't show 'verification page' (pagekite and localtonet). In both alternatives I was able to successfuly browse my local instance without verification page, but when trying to set this as my webhook in FB developers page my instance got untouched and, obviously, I could not set it as my webhook addres. |
could you solve this ? @guskuma |
Hey @TGw44 I had no luck yet. Next weeks I'll try again and I'll let you know if it works. |
I have good news @guskuma , i made it work without ngrok! I used Heroku instead. Here is great video step by step. Note: i had to change startExpressServer.js line 100 const port = (options === null || options === void 0 ? void 0 : options.port) || 3000; Maybe we can add this alternative in the TUTORIAL @tawn33y |
Sure thing, I'll create an issue for this for tracking |
Hello everyone, i have read all comments in this issue and i thought finally i found a solution for webhook with using heroku. But when i check the heroku page i see there is no free option anymore. So is there any progress about this situation? How we going to verify? |
Ok guys, we can use telebit.io instead of other tunnels. It's works now |
@ernsk How did u achive with telebit.io, im only watching the reverse form, from a page to a locahost |
I success to do it with loophole.cloud |
I followed all the steps in the tutorial section and I was able to send messages, but my webhook endpoint was not verified. I've tried many ways, and the only way that works is using Glitch, as recommended in the API documentation. Do you know any solution that could solve my issue?
The text was updated successfully, but these errors were encountered: