---
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](/guides/messaging/attachments/index.md)
- [API reference: Attachments](/api/resources/attachments/index.md)
- [Debugging](/guides/platform/debugging/index.md)
