Troubleshooting¶
Common issues and solutions when using RAPS CLI.
Authentication Issues¶
"Authentication failed" Error¶
Symptoms:
Solutions:
1. Verify APS_CLIENT_ID and APS_CLIENT_SECRET are set correctly:
- Verify credentials in APS Developer Portal:
- Go to APS Developer Portal
- Check that your application is active
-
Verify Client ID and Secret match
-
Check for typos or extra spaces in credentials
-
Try logging out and testing again:
"Callback URL mismatch" Error¶
Symptoms:
Solutions:
1. Verify APS_CALLBACK_URL matches your APS application settings:
-
Default callback URL is
http://localhost:8080/callback -
Update APS application settings to match your callback URL
-
For production, use HTTPS:
"Token expired" Error¶
Symptoms:
Solutions: 1. Tokens are automatically refreshed, but if you see this error:
- Check your system clock is synchronized:
Bucket and Object Issues¶
"Bucket already exists" Error¶
Symptoms:
Solutions: 1. Bucket keys must be globally unique across all APS applications 2. Use a unique prefix:
- List existing buckets:
"Bucket not found" Error¶
Symptoms:
Solutions: 1. Verify bucket key is correct:
-
Check bucket exists in the correct region:
-
Ensure you're using the correct credentials (buckets are per-application)
"File not found" Error¶
Symptoms:
Solutions: 1. Verify file path is correct:
-
Use absolute path if relative path doesn't work:
-
Check file permissions:
Translation Issues¶
Translation Stuck in "pending" Status¶
Symptoms: Translation status shows "pending" for a long time
Solutions: 1. Large files take longer to process (10+ minutes is normal) 2. Check status periodically:
-
Use
--waitflag to monitor: -
If stuck for >30 minutes, the translation may have failed
Translation Failed¶
Symptoms:
Solutions: 1. Verify file format is supported: - Supported: DWG, DXF, RVT, NWD, FBX, OBJ, STL, STEP, IGES, IFC
-
Check file isn't corrupted:
-
Verify file was fully uploaded:
-
Try a different output format:
-
Check file size (max 5GB per file)
"Invalid URN" Error¶
Symptoms:
Solutions: 1. URN must be base64-encoded 2. Get URN from upload output:
- Verify URN format:
Data Management Issues¶
"Authentication required" Error¶
Symptoms:
Solutions: 1. Data Management commands require 3-legged OAuth:
- Ensure you selected the correct scopes:
data:readfor listing/browsing-
data:writefor creating/updating -
Check authentication status:
"Project not found" Error¶
Symptoms:
Solutions:
1. Verify project ID format:
- For Data Management: Use b.project123 format
- For Issues: Use project123 format (without "b." prefix)
-
List projects to get correct ID:
-
Ensure you have access to the project
"Permission denied" Error¶
Symptoms:
Solutions: 1. Check you have the required scopes:
-
Login with appropriate scopes:
-
Verify you have permissions in BIM 360/ACC project
Design Automation Issues¶
"Nickname required" Error¶
Symptoms:
Solutions:
1. Set APS_DA_NICKNAME environment variable:
-
Add to
.envfile: -
Nickname must be unique across all APS applications
"Engine not found" Error¶
Symptoms:
Solutions: 1. List available engines:
-
Use exact engine ID format:
-
Check engine availability in your region
Webhook Issues¶
Webhook Not Receiving Events¶
Symptoms: Webhook status shows "active" but no events received
Solutions: 1. Verify callback URL is publicly accessible:
-
Check webhook status:
-
Ensure endpoint returns 200 OK:
-
Check server logs for errors
-
Use HTTPS for production (required)
Webhook Status Shows "inactive"¶
Symptoms: Webhook status is "inactive"
Solutions: 1. Verify endpoint is responding:
-
Check endpoint returns 200 OK quickly (< 5 seconds)
-
Ensure HTTPS is used (required for production)
-
Delete and recreate webhook:
General Issues¶
Command Not Found¶
Symptoms:
Solutions: 1. Verify RAPS is installed:
-
Add to PATH:
-
Reinstall if necessary:
Slow Performance¶
Symptoms: Commands are slow or timing out
Solutions:
1. Check network connection
2. Verify APS service status
3. Large files take longer - be patient
4. Use --wait flags for long-running operations
Environment Variables Not Loading¶
Symptoms: Commands fail with "missing credentials" error
Solutions: 1. Verify variables are set:
-
Use
.envfile in current directory: -
Reload shell after setting variables:
Getting Help¶
If you're still experiencing issues:
- Check Documentation: Review command-specific documentation
- Verify Setup: Run
raps auth testto verify authentication - Check Logs: Look for detailed error messages
- GitHub Issues: Report issues at GitHub Repository
- APS Support: Contact APS support for API-related issues
Related Documentation¶
- Getting Started - Setup guide
- Configuration - Configuration options
- Command Reference - Complete command documentation