Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29276 META- Web service improvements for 2.2
  3. MDL-29380

Try to reproduce "Invalid external api parameter: users (Only arrays accepted.)" for moodle_user_create_users

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: DEV backlog
    • Component/s: Web Services
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      Someone had problem with 'moodle_user_create_users': http://moodle.org/mod/forum/discuss.php?d=184276

      Writing web service sample test client, I discovered that if the params was an object, the curl library that I used produced this error. I had to cast the object into an array to fix the issue of the library. It is probable that the same issue exist in Moodle core / Moodle client. More over the error message was not very clear.

      1- try to find out if the error message could be more helpful
      2- can we reproduce this error with the Moodle REST client ?

        Attachments

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            jerome Jérôme Mouneyrac
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: