aws / amazon-sagemaker-feedback

Amazon SageMaker Public Feedback Dashboard
Creative Commons Attribution Share Alike 4.0 International
4 stars 1 forks source link

Error when clicking Run Space from a space settings page when a custom image is pre-selected #63

Open lyschoening opened 3 months ago

lyschoening commented 3 months ago

Product Version

Issue Description

There's an unhandled error upon clicking Run Space when following these steps:

  1. Select a custom image in a JuypterLab space
  2. Refresh or navigate away and return
  3. Press Run Space

Expected Behavior

Space starts

Observed Behavior

400 error with following message:

2 validation errors detected: Value '' at 'spaceSettings.jupyterLabAppSettings.defaultResourceSpec.sageMakerImageVersionAlias' failed to satisfy constraint: Member must satisfy regular expression pattern: (^\\d+$)|(^\\d+.\\d+$)|(^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$); Value '' at 'spaceSettings.jupyterLabAppSettings.defaultResourceSpec.sageMakerImageVersionAlias' failed to satisfy constraint: Member must have length greater than or equal to 1"
__type
: 
"ValidationException"

Product Category

JupyterLab

Feedback Category

User Interface

Other Details

This is due to the preselected value not properly propagating from the UI to the request that is being made.

vagayan commented 3 months ago

I have the same issue and have opened a case with AWS Support, no resolution yet.

vagayan commented 1 week ago

This has been mostly addressed in the latest updates, although occasional glitches still take place from time to time when starting a custom image from the space details page. No error ever occurs when the same image is started from the space listing page.