IFTTT Webhooks doesn't allow localhopst - webhooks

I am trying to build something that will allow IFTTT to send a web request to a localhost (127.0.0.1:8080) using webhooks. I have a web server running on my android device for this reason. The web server will then parse the request and forward this to the Tasker application as an event. My Kronaby watch has the ability to activate an IFTTT applet with a button push. In order to expand the possibilities, I am trying to integrate Tasker via a webhook.
The current issue I have is that webhooks doesn't allow requests to 127.0.0.1 per the error I am getting.
In the end my question would be how I could get IFTTT to send an action to Tasker.

How would the IFTTT service - running on their servers know how to resolve your localhost (not running into their servers)?
I think you need to expose your server's IP address to (eg) IFTTT. Probably scary.

Related

Is there local Accepted Tunneling Solution To Test Facebook Webhooks

I am integrating WhatsApp with Django application that I am still running locally to send WhatsApp which is working fine.
However to receives messages from Facebook it needs a webhook that I have implemented using Django since I am still building the application locally. on my laptops I am using Tunneling solutions Ngrok and LocalTunnel to expose the application online so that Facebook can send incoming messages to my App onto my laptop but Facebook is rejecting URLs that are I created using Ngrok and LocalTunnel with error message below:
The url https://2y7y-56-897-3-457.eu.ngrok.io/apv/facebook has been identified as malicious and/or abusive.
The url https://great-finds-comes-78-673-8-897.loca.lt/apv/facebook has been identified as malicious and/or abusive.
I have two questions:
Has anyone been successful using Ngrok and Localtunnel while building locally on Facebook webhooks?
what other tools are there that are available on windows to achieve this? I don't have a dedicated domain name yet and dedicated cloud/online platform where I can host the app yet.
The other alternative solutions I have seen that have been mentioned, it's the Ultrahook though the client is available as a Ruby gem that I have failed to get running on windows:
I was following this question: Can i use localhost as a URL Callback in a messenger webhook

GraphQL subscription does not receive messages after successful handshake

I have created a simple GraphQL Subscription using Nest.js/Apollo GraphQL over Node.js. My client application which is a react.js/apollo client works find with the server. The client subscibes to the server via GraphQL similar to:
subscription
{
studentAdded
{
id
}
}
My problem is that it works only locally. When I deploy my server back-end to a hosted docker over internet, client won't receive data anymore.
I have traced the client, it sends GET request on ws://api.example.com:8010/graphql and receives the successful HTTP/1.1 101 Switching Protocols response. However, nothing is received from server like when the server was on my local machine. Checking the remote server log showed me that the client successfully connects to server. There, I can see onConnect log messages.
Now I need any guidance to solve the problem.
I check several things myself. Firstly, I thought WebSocket address is prohibited in the network but then realized that it is on same port as normal HTTP. Secondly, supposed that WebSocket messages/frames are transmitted over UDP but I was not correct, it is over TCP and no need to worry about network settings.
Additionally I have read several github threads and StackOverflow questions. But did not find any clue. I am not directly using Node.js/WebSocket, instead, I am using Nest.js/GraphqQL subscription. It has made my search tougher.
Your help is highly appreciated.

How to create a HTTPS tunnel on my vps for my twitch bot event listen

I found an example on how to use the twitch EventSub webhooks(https://github.com/twitchdev/eventsub-webhooks-node-sample/blob/main/index.js) but i'm struggling with finding out how to setup it up without having to install ngrok or other apps on my PC since i have a vps where i host the bot. I understood the GET method but POST is a bit difficult for me.
Hope i explained it well enough for someone to understand.
Twitch EventSub at time of writing only offers a "Webhook transport"
So you should be able to set this up no problem on your VPS, since your VPS is web accessabile.
To test this locally on your PC yes you will need a proxy/tunnel such as NGROK to make your PC web accessable.
A "webhook transport" (to over simplfy) operates in the same way a login from on a Website does. You fill in the form and hit submit, and the form is POST'ed to the server.
Webhook's it's the same thing, except the data isn't POST'ed as a form but a JSON blob in the body.
So you can use anything capable of receiving a HTTP POST. There are just a few NodeJS examples like the one you have linked kicking about.
TLDR: unless you are testing, skip setting it up on your PC and start with setting it up on your VPS, as the VPS doesn't need a tunnel, apache/nginx are the SSL Terminator that passes to your Node script, if you use a node script link the linked exmaple in the OP

Call an API from web browser to the localhost of Electron app via WebSocket

I've made an Electron application as a server to receive API requests on the user's PC. Then I've allowed users to request API from the browser (not only on the same PC) to Electron application localhost server. To make it work, I've used Ngrok as a tunnel to publish my local port, but because of the limitation for free users, I could not use it anymore.
I'm aiming to solution calling localhost via Web Socket, but I could not found anyone attempted on the Internet.
Could you please give me some idea to deal with it? Thanks in advance.

Use Paypal webhooks simulator in nodejs

I'm try to send events from webhooks simulator to test my app I provided the URL and select the event from dropdown and click send it show event is successfully queued ... waiting few minutes but not got anything to that URL. Can you please let me know why it's not sending anything I tried different events but nothing happen
Without knowing what the webhook URL is, we can't comment specifically, but typical problems are:
Non-standard port (must be https on 443)
Firewall issue (must be publicly accessible)
A domain PayPal cannot resolve or connect to (try a different domain or IP address)

Resources