---
title: 5002: File download failed | API Docs
description: Failed to download file from URL.
---

Failed to download file from URL. This is an HTTP 500 error indicating the server could not retrieve the file at the URL you provided.

## Troubleshooting

- Ensure the URL is publicly accessible
- Ensure the URL uses HTTPS with a valid SSL certificate

## Related

- [Attachments](/channel/imessage/guides/messaging/attachments/index.md)
- [API reference: Attachments](/channel/imessage/api/resources/attachments/index.md)
- [Debugging](/channel/imessage/guides/platform/debugging/index.md)
