GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — dns and retry with pre-built interceptors error · Issue #3901 · nodejs/undici Closed Labels bugSomething isn't working DescriptionBug DescriptionWhen I use dns and retry with pre-built interceptors, I get no response. Reproducible Byimport { Agent, setGlobalDispatcher, interceptors } from 'undici'; const { dns, retry } = interceptors; const agent = new Agent({ connect: { rejectUnauthorized: false, }, }).compose([ dns({ maxTTL: 60 * 60 * 1000, maxItems: 10000, }), retry({ maxRetries: 2, maxTimeout: 5 * 1000, }), ]); setGlobalDispatcher(agent); (async () => { const todo = await fetch('https://jsonplaceholder.typicode.com/todos/1') .then((res) => res.json()) .catch(console.error); console.log(JSON.stringify(todo, null, 2)); })(); Expected BehaviorA response to the request should occur and console.log should be printed. {
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}Logs & ScreenshotsThe error below does not always occur immediately. EnvironmentMacOS Sequoia 15.0 7.0.0-alpha.6 ~ 7.0.0-alpha.8 → Works fine Activity
MetadataMetadataAssigneesLabelsbugSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |