aws-toolkit-vscode icon indicating copy to clipboard operation
aws-toolkit-vscode copied to clipboard

'Get Lambda function policy' leaves 'Loading...' on screen when Function Policy cannot be found

Open KaylorDave opened this issue 8 years ago • 2 comments

Describe the bug When attempting to view my Lambda functions' policy, vscode opened a new tab but just sat on 'Loading...' indefinitely.

To Reproduce

Steps to reproduce the behavior:

  1. Open vscode with the AWS toolkit for VSCode
  2. Setup credentials and connect to AWS through the extension
  3. Either from the command palette (F1) or through the AWS toolkit sidebar in VSCode using right-click, select 'Get Lambda Function Policy'
  4. See that it hangs on Loading...

Expected behavior I expected to see my Lambda functions' policy

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise v1809 build 17763.134
  • Visual Studio Code Version: 1.29.1 (user setup)
  • AWS Toolkit for Visual Studio Code Version: 0.0.1

Additional context N/A

KaylorDave avatar Nov 29 '18 21:11 KaylorDave

Thank you for the report! Looks like some additional handling is required in cases where GetPolicy returns ResourceNotFoundException

awschristou avatar Nov 29 '18 21:11 awschristou

A fix has now been committed into the develop branch.

awschristou avatar Dec 04 '18 01:12 awschristou