Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda Edit Code Inline shows "Loading your function..." continuously

Tags:

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

And since 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 behavior?

EDIT: 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

like image 677
jsherk Avatar asked Dec 01 '17 00:12

jsherk


People also ask

How do you prevent lambda function from running indefinitely?

Set Concurrency To Zero One of the main ways you can stop your Lambda is to set the concurrency limit to zero. Note, setting concurrency to zero will not stop any currently processing lambda functions, but it will prevent any new lambda functions from starting.

How do I edit Lambda in AWS?

Expand Lambda, choose the name of the function to change the configuration for, and then do one of the following: Change settings such as the timeout, memory, environment variables, and execution role – Right-click the name of the function, and then choose Update Function Configuration.

Will AWS Lambda reuse function instances?

To improve performance, AWS Lambda may choose to retain an instance of your function and reuse it to serve a subsequent request, rather than creating a new copy. To learn more about how Lambda reuses function instances, visit our documentation. Your code should not assume that this will always happen.


2 Answers

I was facing the same issue on Chrome 63. What worked for me:

  • Right Click on the "Loading your function..."

  • Click on Reload Frame.

It should load the IDE.

enter image description here

like image 172
J. Parashar Avatar answered Oct 23 '22 08:10

J. Parashar


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 other browser) for editing while waiting for Amazon to fix this.

like image 34
janih Avatar answered Oct 23 '22 08:10

janih