Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Visual Studio Code Google Cloud Code Emulator Issue

Hi all, whenever I try to run my emulator through visual Studio Code, I get the error,
(Error: Container start failed with Error: wait exceeded). However, when I first installed the emulator it did work, and I can still run the container through docker. Does anyone have any ideas why I am facing this issue, thank you.

tearingwaif17_0-1722863785714.png

tearingwaif17_2-1722863813039.png

tearingwaif17_4-1722863851755.png

 

2 1 268
1 REPLY 1

This can happen when the emulator instance takes more than a minute to start. The container may start immediately but the underlying image takes a little while to be ready. The apigee extension looks for the image to be ready before it says the emulator is available for business. The start time depends on kind of docker setup you are using and how much resources are allocated.  

As a workaround, restarting the vscode instance should fix the problem and the restarted instance should be visible in the extension.

We will work on getting the timeout increased to a higher value so that you do not need to restart the vscode.