Skip to content

Commit

Permalink
Merge pull request transitive-bullshit#249 from czzonet/main
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Jan 10, 2023
2 parents d4067ca + 384db42 commit 1923f77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ export async function browserPostEventStream(
messageId
})
}
try {
const checkJson = JSON.parse(data)
} catch (error) {
console.log('warning: parse error.')

return
}
try {
const convoResponseEvent: types.ConversationResponseEvent =
JSON.parse(data)
Expand Down

0 comments on commit 1923f77

Please sign in to comment.