Skip to content

Commit

Permalink
chore: update tiktok hint
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Aug 26, 2024
1 parent 808f189 commit 57ee0e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/crawler/capture-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export function captureError(fn) {
}
}

if (message.includes('403')) {
// tiktok Request failed with status code 502
if (message.includes('403') || message === 'Request failed with status code 502') {
return {
code: CRAWLER_ERROR_CODE.FORBIDDEN
}
Expand Down

0 comments on commit 57ee0e3

Please sign in to comment.