Expand my Community achievements bar.

SOLVED

Getting 503 First Byte timeout with querybuilder on Aem as cloud service?

Avatar

Level 7

Hi 

akshaybhujbale_0-1677657189787.png

 

For the above query I am not getting response from querybuilder. 

I am getting below error 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">


    <link rel="stylesheet" href="https://errors.adobeaemcloud.com/src.status.css">
</head>

<body>
    <noscript>AEM Cloud Service.</noscript>
    <div id="root" status="503" backend="91530c0b88d94723658fbdea70611f93--F_Skyline_Origin_Ingress_Author" healthy="1"
        gen="0" rid="c353be71-c5cf-45a9-9840-6819d71ee958" xid="1768318060" age="0.000" ttl="0.000" restarts="0"
        nobranding="true"
    </div>
    <script src="https://errors.adobeaemcloud.com/src.status.js"> </script>
</body>

</html>
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @akshaybhujbale 

@mayee_abhishek 

The query that you have shared in screenshot would traverse a lot of pages. It might be failing at backend after reaching Max traversal limit.

Please find-tune your query to be more exact. Like a smaller sub-tree. 

 

When in doubt about queries, always check logs for Traversal errors.

https://wttech.blog/blog/2020/jcr-query-performance/ explains about Explain Query tool, which helps you identify if an Index is picked for a query or not.

 

 


Aanchal Sikka

View solution in original post

5 Replies

Avatar

Level 5

Hi @akshaybhujbale 

Check if you have enough permissions and query execution rights.

Also verify if query debugger is enabled.

 

Also verify this in your local SDK if it is working as well.

 

Finally try to reduce the size of query and add limit to 1 instead of -1

 

Hope this is helpful.

Avatar

Correct answer by
Community Advisor

Hello @akshaybhujbale 

@mayee_abhishek 

The query that you have shared in screenshot would traverse a lot of pages. It might be failing at backend after reaching Max traversal limit.

Please find-tune your query to be more exact. Like a smaller sub-tree. 

 

When in doubt about queries, always check logs for Traversal errors.

https://wttech.blog/blog/2020/jcr-query-performance/ explains about Explain Query tool, which helps you identify if an Index is picked for a query or not.

 

 


Aanchal Sikka

Avatar

Level 7

Hi @aanchal-sikka 

How to increase this Max traversal limit in AEM as cloud service.

Avatar

Community Advisor

Hi @akshaybhujbale 

 

  1. Did you enable the indexing and check?

Hope it helps!

Thanks,
Kiran Vedantam.