Freshdesk App can work with AWS Javascript SDK?

  • 20 January 2017
  • 1 reply
  • 31 views


Hi,




I am just getting started to develop a freshdesk app project using AWS Javascript SDK. Before getting further, I have followed the instruction from AWS to simply include <script src="https://sdk.amazonaws.com/js/aws-sdk-2.7.20.min.js"></script> in template.html


and simply created an object var s3 = new AWS.S3(); or  var s3 = new window.AWS.S3(); in app.js for a test.




However, it returned  "Uncaught ReferenceError: AWS is not defined" OR "Uncaught TypeError: Cannot read property 'S3' of undefined" in console log when I tried to run it from browser.




May I know any limitation or need any attention to work with AWS Javascript SDK?




http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/js-sdk-dv.pdf



This topic has been closed for comments

1 reply


We have sometimes noticed a timeout issue while loading scripts. As a workaround, could you try jQuery.getScript to load the script?