Troubleshooting
Resolve common integration hurdles: CORS errors, network timeouts, canister status, and boundary node routing.
Troubleshooting
Diagnose and resolve the most common issues encountered when integrating with ICBucket.
Common Issues & Fixes#
1. "TypeError: NetworkError when attempting to fetch resource"#
Symptom: Browser console throws a NetworkError when calling external endpoints.
Cause: Cross-Origin Resource Sharing (CORS) blocks direct browser fetch calls to external git repositories or unproxied gateways.
Solution:
- Ensure all client requests route through same-origin API routes (e.g.
/api/...) or the official Edge CDNhttps://cloud.icpay.app/cloud/which emits explicit permissive CORS headers:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS2. Canister Out of Cycles Warning#
Symptom: Calls return Canister is out of cycles.
Solution:
- Check cycle balance via
dfx canister statusor via the ICPay dashboard. - Upgrade or top up cycles using ICP from your wallet balance.
3. File Chunk Upload Hanging#
Symptom: Large file upload freezes around 50%.
Solution:
- Reduce chunk size from 2MB to 1MB if running on cellular or unstable client network connections.
- Ensure the upload session has not exceeded its 30-minute idle TTL.
Related Pages#
Edit this page on GitLabUpdated recently
Search documentation
Quickly find guides, APIs, and reference docs