microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
522 stars 519 forks source link

Not Found exception #49

Closed Allann closed 6 years ago

Allann commented 7 years ago

I receive a 'Not Found' exception at this point.

https://github.com/Microsoft/vsts-dotnet-samples/blob/d4958e2eff2f61c1719465dd8045b7474217f012/ClientLibrary/Snippets/Microsoft.TeamServices.Samples.Client/WorkItemTracking/Sample.cs#L370

I'm thinking it's because I end up with 389 ids being passed to the query. I assume this is way too many since a query returning a smaller result set works fine. My issue is that I have no idea what the upper limit is and whether the query is truely 'Not Found' or whether it's a data issue.

obvioussean commented 7 years ago

Sorry you’re hitting this issue. Unfortunately you’ve hit a limitation of the URL length. Once the URL length has been exceeded, the server just gets the truncated version, so odds are high that the truncated work item id is not valid.

I recommend limiting your calls to 200 ids at a time.

From: Allan Nielsen [mailto:notifications@github.com] Sent: Wednesday, August 9, 2017 6:09 PM To: Microsoft/vsts-dotnet-samples vsts-dotnet-samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Microsoft/vsts-dotnet-samples] Not Found exception (#49)

I receive a 'Not Found' exception at this point.

https://github.com/Microsoft/vsts-dotnet-samples/blob/d4958e2eff2f61c1719465dd8045b7474217f012/ClientLibrary/Snippets/Microsoft.TeamServices.Samples.Client/WorkItemTracking/Sample.cs#L370https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvsts-dotnet-samples%2Fblob%2Fd4958e2eff2f61c1719465dd8045b7474217f012%2FClientLibrary%2FSnippets%2FMicrosoft.TeamServices.Samples.Client%2FWorkItemTracking%2FSample.cs%23L370&data=02%7C01%7Csferg%40exchange.microsoft.com%7C2f80757d65c0472a8c8708d4df8c6fa4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636379241639856462&sdata=tEZgzS%2BV%2Fjyqz2MBBz0RrgqugpA76NNj%2BIszD4LSvlY%3D&reserved=0

I'm thinking it's because I end up with 389 ids being passed to the query. I assume this is way too many since a query returning a smaller result set works fine. My issue is that I have no idea what the upper limit is and whether the query is truely 'Not Found' or whether it's a data issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvsts-dotnet-samples%2Fissues%2F49&data=02%7C01%7Csferg%40exchange.microsoft.com%7C2f80757d65c0472a8c8708d4df8c6fa4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636379241639856462&sdata=JRGGCKZu2mYDEoK8nsMXa0QZyXRpmtR8%2FAdaWkozjpM%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOV3pjnPVBMsCFDM2pSD3VIia4cQfmpzks5sWlhBgaJpZM4Oy0td&data=02%7C01%7Csferg%40exchange.microsoft.com%7C2f80757d65c0472a8c8708d4df8c6fa4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636379241639856462&sdata=1IZHr2%2FFg0k1A0lOLXmeOYoI3dyZzpT1HUdwArumaYk%3D&reserved=0.

vfrank66 commented 6 years ago

Do you have an example of batching?