Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to configure response timeout on dispatcher?

Avatar

Avatar
Level 1
Namit_Gupta
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Namit_Gupta
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Namit_Gupta
Level 1

15-10-2015

Hi,
 
We have requirement for showing custom error page to the end-users in case CQ5 is not able process the request and render the response within a defined time period (Http errorcode: 504). We tried the configuring the receiveTimeout parameter on dispatcher. PFB configuration snippet for the same:
 
/renders
        {
          /cqpub1
          {
            /hostname "XX.XXX.XX.XX"
            /port "4503"
            /timeout 10
            /receiveTimeout 3
          }
}
 
Our CQ5 config is as follows:
 
CQ Version : 5.4
Dispatcher version : 2.2
 
 
However, we were not able to reproduce the Error code : 504. Has anyone faced a similar issue before?
 
would appreciate any help in this regard?

 

-Namit

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Give Back
Level 1
jorgef65115443
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile

Avatar
Give Back
Level 1
jorgef65115443
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile
jorgef65115443
Level 1

21-08-2020

Hi

 

We are getting a 502 error whenever we try to upload a big asset file (around 1.9GB), after 10 minutes the dispatcher throws a 502 error:

 

Dispatcher log

[pid 92561:tid 140698791651072] Error while forwarding request body to remote server: Connection reset by peer

"POST /content/dam/test-area/video-upload-test/upload-test.createasset.html" 502 none

 

AEM log:

POST /content/dam/test-area/video-upload-test/upload-test.createasset.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter isValidRequest: the CSRF token is expired

21.08.2020 20:08:08.167 *INFO* [10.43.1.4 [1598040488165] POST /content/dam/test-area/video-upload-test/upload-test.createasset.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter doFilter: the provided CSRF token is invalid

 

Someone can help?

 

Thanks

Avatar

Avatar
Level 1
Namit_Gupta
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Namit_Gupta
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Namit_Gupta
Level 1

15-10-2015

Hi Yogesh,

 

We get 502 only after shutting down the CQ5 instance.

 

Regards,

Namit

Avatar

Avatar
Boost 5
Level 4
Yogesh_Upadhyay
Level 4

Likes

18 likes

Total Posts

121 posts

Correct Reply

62 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 50
View profile

Avatar
Boost 5
Level 4
Yogesh_Upadhyay
Level 4

Likes

18 likes

Total Posts

121 posts

Correct Reply

62 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 50
View profile
Yogesh_Upadhyay
Level 4

15-10-2015

Namit,

Are you getting 502 instead ?

Yogesh