Skip to content

fix: download output files via CDN with required query params#370

Merged
iamhyc merged 1 commit intomasterfrom
369-compile-hangs
May 6, 2026
Merged

fix: download output files via CDN with required query params#370
iamhyc merged 1 commit intomasterfrom
369-compile-hangs

Conversation

@iamhyc
Copy link
Copy Markdown
Member

@iamhyc iamhyc commented May 5, 2026

resolves #369

Summary

Root cause: Upstream Overleaf changed output file serving — files are no longer proxied through the web frontend. They must be fetched directly from the CDN with three query params that the extension was ignoring.

Fix (2 files, +50/-3 lines):

File Change
base.ts Added clsiServerId/pdfDownloadDomain to CompileResponseSchema. Extended getFileFromClsi() to construct CDN URL with ?compileGroup=&clsiserverid=&enable_pdf_caching=true when both fields are available, downloading cross-origin without cookies. Added _downloadAbsolute() helper.
remoteFileSystemProvider.ts Store compileGroup/clsiServerId/pdfDownloadDomain from compile response; pass them when opening output files.

Before: GET https://www.overleaf.com/project/{pid}/.../output.pdf → 404
After: GET https://compiles.overleafusercontent.com/zone/c/project/{pid}/.../output.pdf?compileGroup=standard&clsiserverid=xxx&enable_pdf_caching=true → 200

@iamhyc iamhyc merged commit d256556 into master May 6, 2026
4 checks passed
@iamhyc iamhyc deleted the 369-compile-hangs branch May 6, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overleaf Workshop compile hangs in VS Code with no visible error while the same project compiles on Overleaf web.

2 participants