Skip to content

Commit e657772

Browse files
authored
fix: "/dev" fails with "Conversation id must exist" #4188
Problem: "/dev" inside Q fails when a new conversation is started: ``` Sorry, we encountered a problem when processing your request. Amazon Q feature development request failed: Conversation id must exist before continuing ``` Retrying the operation is a workaround for this, and will make the conversation work as expected. Solution: Add `await` when creating the conversation. The missing `await` caused the error because the toolkit tried reading the `conversationId` before it was populated.
1 parent 8ecf057 commit e657772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amazonqFeatureDev/session/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Session {
7070
// Store the initial message when setting up the conversation so that if it fails we can retry with this message
7171
this._latestMessage = msg
7272

73-
telemetry.amazonq_startConversationInvoke.run(async span => {
73+
await telemetry.amazonq_startConversationInvoke.run(async span => {
7474
this._conversationId = await this.proxyClient.createConversation()
7575
span.record({ amazonqConversationId: this._conversationId })
7676
})

0 commit comments

Comments
 (0)