REST API POST permissions/listObjects throws Internal Server Error for resource object_type

hi!
I have set up a query to call Retool REST API POST /permissions/listObjects, which keeps throwing Internal Server Error when i set the object_type as 'resource'.
I have the auth token set up for Permissions read/write which i successfully use in another API call with the same endpoint but for object_type="app".
How to fix this situation so I could start listing resource objects with permissions for a group?

Attached image of one that works and the one with the error:


Hey @eliise! Thanks for reaching out. This is definitely an odd issue, assuming everything else about the two queries is identical. :thinking:

Both endpoints behave as expected when I tested them on my own instance. I do, however, see your 500 level errors in our backend logs - they indicate that the id you're providing is invalid.

My first instinct is to double and triple check that one of the table rows is actually selected, but that seems too trivial. Can you inspect the value of groups_table.selectedRow in both queries?

Do you have any updates on this, @eliise ? There's no rush and I'm happy to help out whenever you have a chance to provide additional context, but the topic will be unlisted for the time being due to inactivity. :+1: