PDavid commented on PR #6:
URL: https://github.com/apache/phoenix-site/pull/6#issuecomment-4125128627

   When I try to run build.sh on my machine the build fails with this error:
   
   ```
   ✗ Build failed in 2.61s
   [fumadocs-mdx] [Remark Image] Failed obtain image size for 
http://4.bp.blogspot.com/-SAFH11n_bPY/UYvaWa0P4bI/AAAAAAAAAu4/rKOuKIaMwF4/s1600/SkipScan.png
 (public directory configured as 
/home/david/projects/upstream/phoenix-site/public)
   file: 
/home/david/projects/upstream/phoenix-site/app/pages/_docs/docs/_mdx/(multi-page)/features/skip-scan.mdx?collection=docs
       at 
file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:72:15
       at processTicksAndRejections (node:internal/process/task_queues:105:5)
       at runNextTicks (node:internal/process/task_queues:69:3)
       at processTimers (node:internal/timers:520:9)
       at onImage 
(file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:71:20)
       at async Promise.all (index 0)
       at 
file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:131:5
 {
     code: 'PLUGIN_ERROR',
     plugin: 'fumadocs-mdx',
     hook: 'transform',
     id: 
'/home/david/projects/upstream/phoenix-site/app/pages/_docs/docs/_mdx/(multi-page)/features/skip-scan.mdx?collection=docs',
     watchFiles: [
       
'/home/david/projects/upstream/phoenix-site/node_modules/@react-router/dev/dist/config/defaults/entry.client.tsx',
       
'/home/david/projects/upstream/phoenix-site/app/pages/_landing/landing-layout.tsx',
       '/home/david/projects/upstream/phoenix-site/app/root.tsx',
       ...
       
'/home/david/projects/upstream/phoenix-site/app/lib/export-pdf/export-pdf-types.ts',
       
'/home/david/projects/upstream/phoenix-site/app/components/docs/search/utils.ts',
       
'/home/david/projects/upstream/phoenix-site/app/components/docs/search/static.ts',
       
'/home/david/projects/upstream/phoenix-site/app/components/docs/language/parse-bnf.ts',
       ... 388 more items
     ],
     [cause]: TypeError: fetch failed
         at node:internal/deps/undici/undici:13510:13
         at processTicksAndRejections (node:internal/process/task_queues:105:5)
         at runNextTicks (node:internal/process/task_queues:69:3)
         at processTimers (node:internal/timers:520:9)
         at getImageSize 
(file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:202:15)
         at onImage 
(file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:71:20)
         at async Promise.all (index 0)
         at 
file:///home/david/projects/upstream/phoenix-site/node_modules/fumadocs-core/dist/chunk-YDNO7UZ6.js:131:5
 {
       [cause]: AggregateError: 
           at internalConnectMultiple (node:net:1134:18)
           at internalConnectMultiple (node:net:1210:5)
           at Timeout.internalConnectMultipleTimeout (node:net:1742:5)
           at listOnTimeout (node:internal/timers:590:11)
           at processTimers (node:internal/timers:523:7) {
         code: 'ETIMEDOUT',
         [errors]: [Array]
       }
     }
   }
   ```
   
   I tried to rerun the build several times but I got the same result.
   
   Does this works for you?
   
   I see that [we have this SkipScan.png image in the Skip Scan doc 
page](https://github.com/apache/phoenix-site/blob/409f54468979a9cef56a380fb2e9aa9431cbbd14/app/pages/_docs/docs/_mdx/(multi-page)/features/skip-scan.mdx)
 and we link it from 4.bp.blogspot.com and maybe the build cannot download it 
quickly enough? :thinking: 
    
   I think we should anyway rather download this image, put it under 
public/images and update the image link because the Apache Content Security 
Policy does not allow to load it on the live site:
   <img width="3742" height="2004" alt="image" 
src="https://github.com/user-attachments/assets/a898cc87-be10-49bc-b140-065426908a88";
 />
   
   When I downloaded this image, the build was successful for me.
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to