Webservice Function provides data no output to HTTP Request
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
The issue provides a trigger configuration using webservice_action_step followed by http_post_action_step, but names no source files or tests. Start by tracing how the webservice step returns data and how the HTTP request step resolves {data} in the request body. Reproduce the supplied configuration and determine whether the response data reaches the webhook; done means the expected cohort data is available there or the configuration needed to expose it is clear.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I am using a webservice function to provide more data on a cohort when created to the http request step but I have tried to add the data from the webservice function with no data showing up to the webhook, all I see is the filtercode for the data which I have set up as {data} in the body.
here is the json file:
{"name":"Corhort Created","description":"{"text":"","format":"1"}","event":"\core\event\cohort_created","debug":"1","steps":{"58":{"id":"58","name":"Get Cohort Info","description":"Get Cohort Info","type":"actions","stepclass":"\tool_trigger\steps\actions\webservice_action_step","data":"{"functionname":"core_cohort_get_cohorts","username":"","params":"{\r\n \"cohortids\": [{objectid}]\r\n}","stepdesc":"Webservice Function","typedesc":"Action"}","steporder":"0"},"59":{"id":"59","name":"Send to N8N","description":"Send to N8N","type":"actions","stepclass":"\tool_trigger\steps\actions\http_post_action_step","data":"{"url":"https:\/\/n8nurl\/webhook-test\/cohort-created","httpmethod":"POST","httpheaders":"Content-Type: application\/json\r\nAccept: application\/json","httpparams":"cohortid={objectid}&cohortdata{data}","jsonencode":"1","expectedresponse":"200","stepdesc":"HTTP request","typedesc":"Action"}","steporder":"1"}},"moodleversion":"2025041402","pluginversion":"2024111900"}
I would like to use your filtering ability but I never can get that to work.
- Lingua principale
- PHP
- Stelle
- 46
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di catalyst/moodle-tool_trigger
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
catalyst/moodle-tool_trigger#253 ·
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
catalyst/moodle-tool_trigger#251 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
catalyst/moodle-tool_trigger#249 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
catalyst/moodle-tool_trigger#243 ·
-
convert unix timeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
catalyst/moodle-tool_trigger#239 ·
Tutte le issue di catalyst/moodle-tool_trigger
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
taskforcesh/bullmq#5238 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Automattic/jetpack#55517 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
-
area/import type/enhancement when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno