You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
Incorrect handling of errors for 4xx and 5xx on IDE. Proper error
messages for users and telemetry needs to differentiate between service
errors.
## Solution
- Adding 4XX vs 5XX `httpStatusCode` field to `amazonq_utgGenerateTests`
event.
- Improving error handling in unit test generation.
`Generated unit tests are accepted for ${session.fileLanguage??'plaintext'} language with jobId: ${session.listOfTestGenerationJobId[0]}, jobGroupName: ${session.testGenerationJobGroupName}, result: Succeeded`
Copy file name to clipboardExpand all lines: packages/core/src/codewhisperer/models/constants.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -726,6 +726,8 @@ export const noOpenProjectsFoundChatTestGenMessage = `Sorry, I couldn\'t find a
726
726
727
727
exportconstunitTestGenerationCancelMessage='Unit test generation cancelled.'
728
728
729
+
exportconsttooManyRequestErrorMessage='Too many requests. Please wait before retrying.'
730
+
729
731
exportconstnoJavaProjectsFoundChatMessage=`I couldn\'t find a project that I can upgrade. Currently, I support Java 8, Java 11, and Java 17 projects built on Maven. Make sure your project is open in the IDE. For more information, see the [Amazon Q documentation](${codeTransformPrereqDoc}).`
`Amazon Q is unable to upload workspace artifacts to Amazon S3 for security scans. For more information, see the Amazon Q documentation or contact your network or organization administrator.`
376
+
`Amazon Q is unable to upload workspace artifacts to Amazon S3 for ${featureType}. `+
377
+
'For more information, see the Amazon Q documentation or contact your network or organization administrator.'
370
378
)
371
-
consterrorMessage=getTelemetryReasonDesc(error)?.includes(`"PUT" request failed with code "403"`)
0 commit comments