Comments (10)
This is probably a duplicate of #615. What does you payload look like?
from webhook.
Hmm, seems to work with 2.8.0
from webhook.
from webhook.
from webhook.
from webhook.
from webhook.
from webhook.
Gents, I cannot find the hook anywhere in any folder. This is what is coming through while running Webhook:
[webhook] 2023/05/25 09:31:50 [df23ab] incoming HTTP POST request from 127.0.0.1:42954
[webhook] 2023/05/25 09:31:50 [df23ab] redeploy-webhook got matched
[webhook] 2023/05/25 09:31:50 [df23ab] redeploy-webhook hook triggered successfully
[webhook] 2023/05/25 09:31:50 [df23ab] 200 | 0 B | 188.526µs | 127.0.0.1:9000 | POST /hooks/redeploy-webhook
[webhook] 2023/05/25 09:31:50 [df23ab] executing /home/debian/hooks/redeploy-webhook/redeploy.sh (/home/debian/hooks/redeploy-webhook/redeploy.sh) with arguments ["/home/debian/hooks/redeploy-webhook/redeploy.sh" "{"Accept":"text/plain, application/json, application/+json, /","Accept-Encoding":"gzip,deflate","Connection":"close","Content-Length":"416","Content-Type":"application/json","Things-Device-Barcode":"NULL","Things-Message-Token":"c3a62f7b43b3cbfef1895088924c87935ccc752693c557e9c656dcc7b6f098b3","Things-Plug-Uuid":"4aff6a7c-8d9b-44a2-b984-700c777be714","User-Agent":"axios/0.24.0"}" "{"root":[{"bn":"urn:dev:IMEI:86*********1814:","bt":1.684999803E9},{"n":"CPU temperatuur","u":"Cel","v":41.16},{"n":"GPRS-signaal","u":"count","v":27.0},{"n":"Hoogte in masl","u":"count","v":1.0},{"n":"Actuele grondsnelheid in km/h","u":"count","v":0.0},{"n":"Aantal gevonden satellieten","u":"count","v":1.0},{"n":"Totale schijfruimte in Gb","u":"count","v":14.0},{"n":"Beschikbare schijfruimte in Gb","u":"count","v":9.0}]}"] and environment [] using /var/www/html/hooks/redeploy-webhook as cwd
[webhook] 2023/05/25 09:31:50 [31c5f8] command output: mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
[webhook] 2023/05/25 09:31:50 [31c5f8] finished handling redeploy-webhook
[webhook] 2023/05/25 09:31:50 [df23ab] command output: mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
I would expect to find the webhook in the folder /var/www/html/hooks/redeploy-webhook but its empty.
Does it have to do with the fact that <[webhook] 2023/05/25 09:31:50 [df23ab] 200 | 0 B | 188.526µs | 127.0.0.1:9000 | POST /hooks/redeploy-webhook?> states 0 B??? Is it all empty?? I am really stuck here.
Anyone?
KR Alex
from webhook.
I think you're misunderstanding what webhook does. webhook parses a web request and passes parts of that request to a local script or executable. It's up to the script or executable to do something useful with what's passed to it.
Your config is telling webhook to pass a JSON representation of the entire headers and payload to your script, but your script isn't doing anything with the parameters that are passed to it. It's only appending stuff to a log file.
from webhook.
from webhook.
Related Issues (20)
- Vulnerability of dependency "golang.org/x/sys" HOT 1
- Missing payload?
- Webhook does not execute command but always reports 'ok' HOT 2
- If my boolean value is not quoted, will it be matched HOT 1
- Webhook doesn't get triggered when behind a traefik reverse proxy HOT 3
- Broadcasting Slack Slash Command's Response HOT 1
- Header evaluation is broken HOT 4
- Step-by-step tutorial for a 'Hello world'
- Vulnerabilities of dependency "gopkg.in/yaml.v2"
- webhook hook not running bash script HOT 6
- Bitbucket now supports webhook secrets 🥳 HOT 1
- I found that I can't use dot-notation to contain all sub-objects in my json
- I need to parse url for addr:port HOT 1
- Update `go` installation
- Ubuntu Webhooks is not reading the correct RVM ruby installed HOT 2
- Custom logging
- Webhook id is not being served in URL HOT 2
- how to set shell $PATH HOT 4
- Weird Cert issue when calling webhook from shell HOT 1
- pass-file-to-command as optional HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webhook.