Hi,
I am working on some requirements in aem with aio app builder. so i am trying to do the server based token authentication to aem in the app builder code. So when i try to give the json file path, i am getting no "Token file does not exist in the location", why? also, when i try to print the current directory path i am getting this Current Directory: /nodejsAction/lp25kf3X. So i want to know how to read a json file from the js.. How to give the json file path in index.js?
One difference here is, instead of getting the filename from command line, i am passing directly in the code or from the AEM MCP to app builder request call.
Please let me know if anyone knows the answer! Thanks in advance
Regards,
Bhavani Bharanidharan
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @BhavaniBharani ,
The error "Token file does not exist" likely occurs because the JSON file path is incorrect. Since your current directory is /nodejsAction/lp25kf3X, ensure the JSON file path is correct relative to this directory.
Solution:
Hope this helps!
Thanks
Ritesh Mittal
@BhavaniBharani Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies