Skip to content

Commit 3601e55

Browse files
committed
aumentar tempo de timeout ao baixar anexos do chatwoot
1 parent 5e326e4 commit 3601e55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ export class ChatwootService {
10921092

10931093
const response = await axios.get(media, {
10941094
responseType: 'arraybuffer',
1095+
timeout: 120000,
1096+
maxContentLength: 50 * 1024 * 1024,
10951097
});
10961098
mimeType = response.headers['content-type'];
10971099
}

0 commit comments

Comments
 (0)