Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi All,
I am trying to integrate REST API with adaptive form using form data model. My REST api doesn't have any authentication but i get below error when i test the connection.
{
"errorCode": "AEM-FDM-001-016",
"errorMessage": "Error occurred while invoking the service.",
"originCode": "500",
"originMessage": "Unauthorized request"
}
My swagger file is good and i am able to see all the fields extracted from swagger.
Did anyone faced the same issue? let me know if there any solution for this or need to raise daycare ticket.
Thanks,
Vikram.
Gelöst! Gehe zu Lösung.
Anhand von Themen werden Community-Inhalte kategorisiert und Sie können so relevanten Inhalt besser finden.
Zugriffe
Antworten
Likes gesamt
Can you please refer to the link below for the same:
Can you please refer to the link below for the same:
Bit late but might help other people who are setting up forms.
Root cause
1) The Form Data Model will use authentication mechanism Configured in AEM cloudservices/datasource. If you have selected no authentication during setup - it will use anonymous user. In Author env - anonymous user is restricted cannot read /content . so code will throw unauthorsied access. (Developer might get tricked if he/she thinks his logged in ID is used in FDM ).
Solution
1) Configure authentication settings in AEM cloudservices datasource. Make sure that user has all rights needed to call the API and read content etc .
2) Configure logs for DermisServlet and other forms code to debug it
@dkumar_gobi Thank you for sharing this with Community.
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten