Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in AWS by (19.1k points)

Edit Code Inline shows "Loading your function..." continuously and never actually loads the function.

And since the function does not load, you obviously can not edit it.

I think there was some kind of update today (Nov 30, 2017) to Lambda because when you click on a function to edit it, there is a new section at the top that shows CONFIGURATION and says ADD TRIGGER which was not there yesterday.

And when you scroll down to the Function Code section, it just says "Loading your function..." and never does anything else.

Anybody else seeing this odd behaviour?

Using Firefox 57 on Windows 10. I get the following warnings/errors when I check Firefox console:

WARNINGS:

window.controllers/Controllers is deprecated. Do not use it for UA detection. ace.js:1:18479

Use of getPreventDefault() is deprecated. Use defaultPrevented instead. globalnav-fe3b9e5995ba8d342d395cb57493ce54ac2b40bb.gz.js:2:39229

window.controllers/Controllers is deprecated. Do not use it for UA detection. environment-default.js:5987

The ‘content’ attribute of Window objects is deprecated. Please use ‘window.top’ instead. home

ERRORS:

Unhandled promise rejection DOMException { } polyfill.js:4326:11 onUnhandled/https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:4326:11 [90]https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:1786:27 onUnhandled/< https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:4320:16 [46]https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:993:25 https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2154:7 run https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2140:5 listener https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2144:3

Unhandled promise rejection DOMException { } polyfill.js:4326:11 onUnhandled/https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:4326:11 [90]https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:1786:27 onUnhandled/< https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:4320:16 [46]https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:993:25 https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2154:7 run https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2140:5 listener https://d3ifj4k507k5fs.cloudfront.net/ide-164cb54be56918ce7c55af08ee13c6339e8ebc5c/polyfill.js:2144:3

5 Answers

+1 vote
by (44.4k points)

This worked for me:

  • Right-click the “Loading your function” text
  • Choose “Reload Frame

If still does not work, try changing your browser. Try Safari or Microsoft Edge.

AWS Lambda Edit Code Inline shows “Loading your function…” continuously
Intellipaat-community
by (33.1k points)
Thanks! It worked for me.
by (47.2k points)
I had the same problem. it seems that chrome blocks a CloudFront cookie.
click at the left on "Secured" then on the number of cookies then in the block tab.
by (41.4k points)
Worked instantly! Thank you!
+2 votes
by (107k points)

What browser do you use? Chrome 62 and Firefox 57 fail at inline editing lambdas and both throw DOMExceptions, but Safari 11 seems to work. Try Safari(or some different browser) for editing while waiting for Amazon to fix this.

AWS Lambda Edit Code Inline shows “Loading your function…” continuously
Intellipaat-community
by (32.1k points)
Yes, using Safari should solve your problem.
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

+1 vote
by (29.5k points)

This is happening in chrome as chrome is disabling the use of cookies from cloudfront domain.

  1. Go to address bar and there you would see a icon that says there are some cookies blocked on this website.

  2. Click on it.

  3. Click on manage.

  4. Click on Blocked.

  5. Click on allow to couldfront domain.

  6. Reload page.

If this dosen't work try clearing the cookies all together 

AWS Lambda Edit Code Inline shows “Loading your function…” continuously
Intellipaat-community
by (29.3k points)
This worked for me.
+1 vote
by (19.9k points)

I had the same problem. it seems that chrome block a cloudfront cookie. click at the left on "Secured" then on the numberrof cookies then in the block tab.

0 votes
by (106k points)

The same happened to me, I am using the 64-bit version of Google Chrome 75.0.3770.142 on Windows 10. I resolve the issue by trashing all browser data e.g., cookies, etc. You can find the steps to remove that data here.

Even after all those steps if your problem does not resolve then use the following ways and it will definitely work:-

  1. Refresh frame.

  2. Refresh tab.

  3. Close and reopen the browser.

  4. Restart computer.

  5. Cry quietly to me and question my decisions in life.

The Lambda editor in the console is AWS Cloud9, which needs some stuff (e.g., cookies) that are spelt out here.

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...