mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: JSON parse error (maybe)
This commit is contained in:
parent
461437f747
commit
fc715e302e
1 changed files with 6 additions and 1 deletions
|
|
@ -697,7 +697,12 @@ export async function browserPostEventStream (
|
|||
conversationResponse
|
||||
})
|
||||
}
|
||||
|
||||
try {
|
||||
const checkJson = JSON.parse(data)
|
||||
} catch (error) {
|
||||
console.log('warning: parse error.')
|
||||
return
|
||||
}
|
||||
try {
|
||||
const convoResponseEvent =
|
||||
JSON.parse(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue