Webservice Function provides data no output to HTTP Request

Aperta
#248 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
api, backend

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di catalyst/moodle-tool_trigger

Tutte le issue di catalyst/moodle-tool_trigger

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.