The document must be set to Anyone with the link can view. Go to Share → "Anyone with the link" → Viewer. If fetching fails, use the Paste Text tab as a reliable fallback.