Testing the File Picker
You can test the File Picker directly in the StackOne dashboard to verify it’s working correctly with your connected accounts.Accessing the File Picker Test
- Navigate to Accounts in the StackOne dashboard
- Find the linked account you want to test
- Click the ellipsis menu (⋯) on the account row
- Select Test File Picker (or similar option)
- Verify the picker loads correctly
- Test navigation through folders/drives
- Confirm file selection works
- Check that selected files return the expected format
Common Issues
File Picker won't open
File Picker won't open
Possible causes:
- Invalid or expired session token
- Missing or incorrect account ID
- Provider not properly connected
- OAuth redirect URI misconfiguration
- Verify the account is connected and shows a healthy status
- Check that the connect session token was created with the correct
accountIdandproviderparameters - Ensure OAuth redirect URIs are properly configured (see OAuth Proxy Redirect)
- Check browser console for error messages
No files or folders visible
No files or folders visible
Possible causes:
- Insufficient permissions/scopes
- Account authentication expired
- Provider-specific access restrictions
- Verify OAuth scopes are correctly configured:
- SharePoint:
Files.Read.All,Sites.Read.All - Google Drive:
https://www.googleapis.com/auth/drive.readonly - Confluence/Notion: Read access to spaces/pages/blocks
- SharePoint:
- Re-authenticate the account if tokens have expired
- For Notion: Ensure pages/databases are shared with the integration (Settings → Connections → Share with integration)
- Check account status in the dashboard
Picker shows wrong files or structure
Picker shows wrong files or structure
Possible causes:
- Provider-specific navigation differences
- Custom picker behavior for knowledge bases (Confluence/Notion)
- Review provider-specific picker behavior:
- Confluence/Notion: Pages can act as both files and folders
- SharePoint: Requires site selection before drive/folder navigation
- Check the File Picker documentation for provider-specific notes
- Verify you’re testing with the correct provider type
Selected files return incorrect IDs
Selected files return incorrect IDs
Possible causes:
- Using provider-specific IDs instead of StackOne unified IDs
- Incorrect field selection in configuration
- Ensure you’re using the
idfield from the picker response (this is the StackOne unified ID) - Use the unified ID with StackOne API endpoints:
GET /unified/documents/files/{id} - Don’t use provider-specific IDs directly with StackOne APIs
- Check the File Picker output format documentation
OAuth redirect errors
OAuth redirect errors
Possible causes:
- Redirect URI not configured in provider OAuth app
- Redirect URI mismatch between configuration and actual URL
- Missing redirect URI for File Picker (required for Google Drive, SharePoint, OneDrive)
- For Google Drive: Add File Picker redirect URI to your OAuth app configuration
- For SharePoint/OneDrive: Ensure redirect URI includes File Picker support
- See OAuth Proxy Redirect for detailed setup
- Verify redirect URIs match exactly (including protocol, domain, and path)
Related
File Picker Guide
Complete File Picker documentation
Integration Errors
Documents API error codes
OAuth Setup
OAuth redirect configuration
Request Tester
Test Documents API endpoints