Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you put a field in the fields listing in an index method call, Services throws a 500 error. I haven't tracked down where this happens but I assume it is in the query builder. For instance this URI fails
/user/?parameters[uid]=2&fields=uid,name,email
because the proper field is 'mail' not 'email'. It would be nice if we could handle this more gracefully. I don't think it is a showstopper for release but I wanted to make sure the issue gets tracked.
Comment | File | Size | Author |
---|---|---|---|
#1 | services-index-500.patch | 3.56 KB | marcingy |
Comments
Comment #1
marcingy CreditAttribution: marcingy commentedInitial patch to implement a try/catch structure, patch likely needs some work in relation to the message sent back etc.
Comment #2
kylebrowning CreditAttribution: kylebrowning commented