UPDATE I have done some more investigation into this error, so there are some updates below. The issues seems to be isolated to rendering only.
I have a QGIS project which has some layers from an ArcGIS Feature Service. These work when first added. If I leave the project open overnight, and the PC goes into sleep mode, upon waking up the machine, logging in - QGIS is obviously still open and running, however - the ArcGIS Feature Service layers fail to render in the morning.
Note that I have just tested retrieving the attribute layer - this has worked! (40k records have returned). So it appears that the failure is only on the rendering.
If I simply remove the layer, then re-add the layer from the ervice connection, the same layer now renders correctly.
The developer logs inside of QGIS for a failed map render are:
{
"Bytes Received": 64,
"Bytes Total": 64,
"Cache (control)": "Load from cache if available, otherwise load from network",
"Cache (save)": "Can store result in cache",
"Headers": {
"User-Agent": "Mozilla/5.0 QGIS/31603"
},
"ID": "\\providers\\arcgisrest\\qgsarcgisrestutils.cpp:512 (QgsArcGisRestUtils::queryService)",
"Initiator": "QgsArcGisRestUtils",
"Operation": "GET",
"Query": {
"f": "json",
"geometry": "566496.853214,7433289.796526,566776.965816,7433503.860811",
"geometryType": "esriGeometryEnvelope",
"returnIdsOnly": "true",
"spatialRel": "esriSpatialRelEnvelopeIntersects",
"where": "1=1"
},
"Replies": 2,
"Reply": {
"Cache (result)": "Read from network",
"Headers": {
"Cache-Control": "public, must-revalidate, max-age=0",
"Content-Encoding": "gzip",
"Content-Type": "application/json;charset=UTF-8",
"Date": "Tue, 31 Aug 2021 02:35:15 GMT",
"ETag": "bf78c824",
"Persistent-Auth": "true",
"Server": "Microsoft-IIS/10.0, ",
"Set-Cookie": "AGSWA_ROLES=Dtizm2hEKputr+rbuWQIpdNuGfVSIs051rtNqFjfhZx5gRgytClqzPjpLocKVZbAw5e8EMxJCVrpplKUjxeG9Xcc0shZFnCkHBJ0b0AcH0vPg1JKwOFo0hbirmafxHCxzDrpftncRdr2XJ6+0DxmGliSwaec77B/12/8+C90CzdIyllE0Cmlx94kREX4Qhh1luBU+HfZo8qBCY6rU4Wt/zXPLvxLC0oRN7dtwuVoFNeRDrC4jgTbaSP8tT++aoucFm96ENnhQU2Db+BY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b0fvqfV24sd1TPydZez86BNpCINHXIA25hGmkzE/PRjm8wzQjvEgBgSO44dHaT7LwgwKZ+aaM+HS2PnS18iHQUpPo759T5dVIBti1htExKa6URtC1cf4x9zZ+rQroT8mEvTKqmnpoIoSWeRmZZsOnBoJcKHy300lmoHJuTr89Ht66jogK8chRK9n+6Dl2JRt/jx/FG8UHBAK8VPyapNbbkpGqEVK42UNMU7IQ1QLOWpZueaijXfWG3tTpnkNPsavtMxDFdz7ndwq3hzhE1i+6Vyjj5gtA7ZDi0bIt20IK71uHOqgBao1/lw==; expires=Tue, 31-Aug-2021 02:40:15 GMT; path=/; secure; HttpOnly",
"Vary": "Origin",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"x-esri-ftiles-cache-compress": "true"
},
"Status": "200"
},
"Thread": "0x0000024d1e1961b0",
"Total time (ms)": 237,
"URL": "https://XYZ.erver.org/arcgis/rest/services/Approvals/Approvals_layer/FeatureServer/1/query?f=json&where=1%3D1&returnIdsOnly=true&geometry=566496.853214,7433289.796526,566776.965816,7433503.860811&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects"
(Please note i have edited the URL to hide the internal details of the server. )
My original theory was that the token that QGIS has requested and received upon initial layer connection, expired overnight. When performing a map request, it is trying to do so with an expired token. But the above Set-Cookie information is suggestive of requesting a new token each time. I may be wrong here, so im now not sure. the fact that attributes are returned but not map render now confuses my theory. Unless token requests only occur upon map request.
My question is two-fold, so ill keep this post focused on confirming the issue.
So this question is - Does anyone know why this issue is occurring? Or is there some further debugging I could perform?
FYI am using QGIS 3.16 on Windows and the ArcGIS Feature Service is configured with 'No Authentication'. (its all single sign on here).