I'm attempting to use QGIS Server 3.18.1 to serve feature data via the new "WFS3" OGC Features API. I successfully installed the server by following the manual and using the referenced training data (https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip, world.qgs project, naturalearth.sqlite dataset) I can successfully interact with data at http://localhost:8000/qgisserver/wfs3/collections?
However I have not been able to access PostgreSQL layers through the Features API and from the logs it's not clear why. The layers simply aren't returned by the /collections endpoint. The same layers are available through QGIS Server's WMS interface, so I know that they are configured correctly in the project file and that the server has access to the database.
The only clue in the log is here:
INFO Server[94]: Using configuration file path from environment: /home/qgis/projects/pg-manual.qgs
WARNING PostGIS[94]: NOTICE: row number 0 is out of range 0..-1
Is there some technical reason why QGIS Server's OGC Features API implementation is currently unable to serve layers from PostgreSQL, even though they are available through WMS? If not, how can I further debug the issue here?