mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +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
|
conversationResponse
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
const checkJson = JSON.parse(data)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('warning: parse error.')
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const convoResponseEvent =
|
const convoResponseEvent =
|
||||||
JSON.parse(data)
|
JSON.parse(data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue