Commit 384db42d authored by czzonet's avatar czzonet

fix JSON parse error

parent d4067ca4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment