Skip to content

Commit

Permalink
Attempt production request bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Mar 5, 2023
1 parent 48928a6 commit dade343
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion plugins/site-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export default fp(async function (fastify, opts) {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'user-agent': GOOGLE_BOT_UA
},
maxRedirections: 3
maxRedirections: 3,
autoSelectFamily: true,
headersTimeout: 15000,
bodyTimeout: 15000
})

if (response.statusCode > 299) {
Expand Down
3 changes: 2 additions & 1 deletion plugins/yt-dlp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default fp(async function (fastify, opts) {
headers: {
Accept: 'application/json',
Authorization: 'Basic ' + btoa(requestURL.username + ':' + requestURL.password)
}
},
autoSelectFamily: true
})

if (response.statusCode !== 200) {
Expand Down
2 changes: 1 addition & 1 deletion routes/api/sns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function snsRoutes (fastify, opts) {
headers,
trailers,
body
} = await undiciRequest(data.SubscribeURL)
} = await undiciRequest(data.SubscribeURL, { autoSelectFamily: true })
fastify.log.info({
statusCode,
headers,
Expand Down

0 comments on commit dade343

Please sign in to comment.