================================================= SharePoint Upload Test — MemoryDoodle ================================================= [15:12:31] Filename: Order ID 9999 | Title Alex's Book | Qty 2.pdf [15:12:31] Demo PDF generated (648 bytes) [15:12:31] Requesting access token... [15:12:31] ✅ Access token obtained. [15:12:31] Resolving SharePoint site ID (method 1: direct lookup)... [15:12:32] ⚠️ Method 1 failed (HTTP 404). Trying method 2: search by hostname... === DIAGNOSTIC INFO === Both site resolution methods failed. Most likely cause: The Azure app registration is missing API permissions. To fix this, ask the printing partner (or Azure admin) to: 1. Go to portal.azure.com → Azure Active Directory → App Registrations 2. Find the app with Client ID: 3437484f-247a-44d5-adf6-170020760f59 3. Go to API Permissions → Add a permission → Microsoft Graph → Application permissions 4. Add: Sites.ReadWrite.All (or at minimum Sites.Read.All + Files.ReadWrite.All) 5. Click 'Grant admin consent for [org]' Method 1 response (HTTP 404): Array ( [error] => Array ( [code] => itemNotFound [message] => Requested site could not be found [innerError] => Array ( [date] => 2026-04-19T15:12:32 [request-id] => 241e151c-c0dc-47c7-823d-a69934bb3c5a [client-request-id] => 241e151c-c0dc-47c7-823d-a69934bb3c5a ) ) ) Method 2 response (HTTP 403): Array ( [error] => Array ( [code] => accessDenied [message] => Access denied [innerError] => Array ( [date] => 2026-04-19T15:12:32 [request-id] => 7f2b65ce-7f8a-4f4c-80d8-22ac5f2c3554 [client-request-id] => 7f2b65ce-7f8a-4f4c-80d8-22ac5f2c3554 ) ) )