Hello Theo!
Thanks for reaching out.
This error suggests that there might be an issue with the request or the data being returned.
Here are a couple of troubleshooting steps:
Token Expiry: Ensure that the token you're using for the request hasn't expired. If it has, you'll need to obtain a new one.
- Incorrect URL: There might be an error in the URL you're using for the second request. Ensure that the @odata.nextLink URL you received from the first request is being used correctly such that there are no modifications. URL encoding can sometimes cause problem hence copying and pasting the URL into a text editor that shows hidden characters can help identify any issue
- Inspect the Request Headers: Verify that the request headers for the subsequent request are correctly set. Ensure that you are including any necessary headers such as
Authorization
. - Retry Logic: Implement retry logic with exponential backoff to handle transient issues.
- Token Expiry: Ensure that the token you're using for the request hasn't expired. If it has, you'll need to obtain a new one.
Try and capture the logs and if this persists, please share the correlation ID and timestamp details for investigation.