WebService Action successful locally but same workflow loaded in a different moodle instance fails.

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start by tracing the WebService action and session handling in the plugin; the issue does not name relevant files or tests. Compare how the workflow runs locally and in the live Moodle instance, including the configured username, and investigate why rerunning it through the UI succeeds. Done means identifying and fixing the cause of the expired-session error in the live workflow.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I've developed 2 simple workflows locally, when a user is enrolled or un enrolled from a course, a Web Service function is triggered.

Locally the Function runs without issue but in loading the workflows into a live instances of Moodle, the workflows always fail on the action step.

The error is saying that "Web service is not available. The session has been logged out or has expired." and if I re-run the instance via the UI it is successful.

Ive tried to leave the default "blank" username so that the default admin runs the function, while also defining a specific user. They both have the same result.

How do I even go about debugging something like this?

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.