@Nuwan Wickramanayaka Thank you for reaching out to Microsoft Q&A.
If you are trying to access the file using REST API and you are receiving a 500 error, it could be due to a number of reasons. Some common causes of 500 errors include:
- Incorrect URL or path
- Incorrect authentication credentials
- Incorrect permissions
- Server-side issues
To resolve the issue, you need to validate the URL or path, authentication credentials, and permissions. You can also check the server logs for more information about the error.
To understand your issue better, please provide more details on your setup and any server-side logs for the same. Thank you!