Problems with core_message_get_message

Re: Problems with core_message_get_message

by Mei Ling -
Number of replies: 1

Hi Dani Palou

It was written only once and then it was automatically sent several times by the app. 

If my server is too slow to handle the requests, how come the problem will only occured when every time I sent message to student_A? So far, there is no problem face when i sent message to student_B

After debug the code, the error I caught once is in below : 

{exception: "invalid_parameter_exception", errorcode: "invalidparameter",…}

debuginfo: "messages => Invalid parameter value detected: Missing required key in single structure: touserid"

errorcode: "invalidparameter"

exception: "invalid_parameter_exception"

message: "Invalid parameter value detected" 


Most of the time, there is no error, but just the message can't send out (I guess) 

Here is the debug screen, you can see that there are few messages are pending to send, and the requests are keep going out. 


May i know how to fix from here? 

Looking forward to your reply.


Thank you.

Regards,

Mei Ling

In reply to Mei Ling

Re: Problems with core_message_get_message

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Mei Ling,

I think we should continue this discussion in this topic since the problem sending messages isn't related to the original message in this topic.

Kind regards,

Dani