Expand my Community achievements bar.

SOLVED

[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form

Avatar

Level 3

CustomSubmit_Action.pngCustomSubmit_Action.png

 

Hi AEM Adaptive form Guru's

Highlighted in red is where I am getting error when browser from dispatcher

 

Note: I have checked similar questions in AEM forums and it is not helping resolve the issue.

 

Environment : AEM 6.5 

Author | Publish | Dispatcher  environment

Adaptive form works in Author | Adaptive form works in publish | Error when click on submit in AF when I use hostname (from Dispatcher)

[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form

 

Accessing adaptive form from Dispatcher using the hostname does not work.  When I click on submit in the AF form  I get the following error.  I have just used on textbox and one submit button in AF(Adaptive form) 

 

When I check the Network/Console of the browser I see the following errors

Post http:/sdfjlsjflsjdlfsfd.com/content/forms/af/wtc/testing/jcr:content/guideContainer.af.internalsubmi... 404 (Not Found)

I have commented whole of dispatcher filter file and allowed everything, still I get the internal error.

Did anyone face this issue.  

Let me know if you need any additional information.

 

Regards

Dilip

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

workflowuser_0-1597245584283.png

That is my settings for Apache Sling Referrer Filter

suggest you log a support ticket to get this resolved. 

 

View solution in original post

35 Replies

Avatar

Employee Advisor

also can you confirm if you have servlet mounted on /bin/storeafsubmission path. can you check by using the servlet resolver from web console

Avatar

Level 3
I am able to narrow down the problem to host header issue for that this is what I have done a) added the host name in Apache Sling Referrer Filter Configure the referrer filter service: Log in to the Apache Felix configuration manager as an administrator. The Default URL of the configuration manager is https://[server]:[port_number]/system/console/configMgr . In the Configurations menu, select the Apache Sling Referrer Filter option. In the Allow Hosts field, enter host name of the dispatcher to allow it as a referrer and click Save . The format of the entry is `https:// #: #'. Can you please guide me on is there something I need to do on the dispatcher site as well? Regards Dilip

Avatar

Level 9

It works author instance and your publish instance?

 

Avatar

Correct answer by
Employee Advisor

workflowuser_0-1597245584283.png

That is my settings for Apache Sling Referrer Filter

suggest you log a support ticket to get this resolved. 

 

Avatar

Employee Advisor

@dilips50359074 Lets start with the basic test here, does Out of the box email submit works on dispatcher? Also, test if Form portal submit action works

Avatar

Level 3
Hi Mayank, so here is the thing a) Adaptive form submit action work from author and publisher ... b) Adaptive form submit action does not work from hostname c) My requirement does not have to send email

Avatar

Level 3
HI Mayank, actual I do not have enough knowledge in this... I know the rewrite files/ filter files.. mostly I play with that. This setup , I have not done.. so answer is I do not know

Avatar

Employee Advisor

@dilips50359074

 

    • Edit /etc/httpd/conf/dispatcher.any
      • Add virtual hosts (URI and hostname requests which the dispatcher will accept)
      • Add the renderer (the server that provides the pages to be served, i.e., the publish instance).

Include the following:

1
2
3
4
5
6
7
8
9
10
11
/renders {
/rend01 {
# Hostname or IP of the render
/hostname "127.0.0.1"
# Port of the render
/port "4503”
}
}

This configuration accepts all requests on port 80 and serves the pages provided by the publish instance on port 4503.

Avatar

Employee Advisor

can you please provide the dispatcher logs?

Avatar

Level 1

This is the only error that I see in the browser network tab and in the console error: csrf.min.js:formatted:141 GET https://sdfasdf.sdfsdfsdf.com/content/forms/af/mpsers/jcr:content/guidecontainer.af.internalsubmit.j... 404 (Not Found) but in author and publisher it works as expected.