Reporting API (404) - The controller for [...] was not found or does not implement IController
Officially AnsweredCalling the API returns the following:
<!DOCTYPE html>
<html>
<head>
<title>The resource cannot be found.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
}
@media screen and (max-width: 479px) {
pre { width: 280px; }
}
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/webapi/odata/TimeExport(StartDate='2017-02-01',EndDate='2017-02-28',PopulateTopParentColumns=false,GroupTimeByDateByUser=null)<br><br>
<hr width=100% size=1 color=silver>
<b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1590.0
</font>
</body>
</html>
<!--
[HttpException]: The controller for path '/webapi/odata/TimeExport(StartDate='2017-02-01',EndDate='2017-02-28',PopulateTopParentColumns=false,GroupTimeByDateByUser=null)' was not found or does not implement IController.
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
-
Official comment
We apologize for the issue you are experiencing.
API was changed, you can get information about Model and parameters at Configuration->API->Timetracker API reference:
includeBillable parameter and several new fields were added to model.
We are very sorry for this inconvenience. We are discussing our API development approach to prevent such cases in future.Andarth
Comment actions -
Yep... I'm using the API inside PowerApps from Microsoft, and I get this error...
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/webapi/odata/TimeExport(StartDate=2017-03-30,EndDate=2017-03-30,PopulateTopParentColumns=false,GroupTimeByDateByUser=false,IncludeBillable=true)<br><br> -
Yes, I'm getting the same error. This is brand new TFS 2018 on prem environment with Time Tracker 4 installed.
Unhandled Exception: Microsoft.OData.Client.DataServiceQueryException: An error
occurred while processing this request. ---> Microsoft.OData.Client.DataServiceC
lientException: <!DOCTYPE html>
<html>
<head>
<title>The resource cannot be found.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:bl
ack;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5p
x}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red
}
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maro
on }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;m
argin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy;
cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap:
break-word; }
}
@media screen and (max-width: 479px) {
pre { width: 280px; }
}
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 colo
r=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or
one of its dependencies) could have been removed, had its name changed, or is te
mporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.
<br><br>
<b> Requested URL: </b>/api/OET/TimeExport(StartDate='2017-10-19
',EndDate='2018-01-19',PopulateTopParentColumns=null,GroupTimeByDate
ByUser=null,IncludeBillable=null)<br><br>
<hr width=100% size=1 color=silver>
<b>Version Information:</b> Microsoft .NET Framework Version:4.
0.30319; ASP.NET Version:4.7.2106.0
</font>
</body>
</html>
<!--
[HttpException]: The controller for path '/api/OET/TimeExport(StartDate='
;2017-10-19',EndDate='2018-01-19',PopulateTopParentColumns=null,Grou
pTimeByDateByUser=null,IncludeBillable=null)' was not found or does not impl
ement IController.
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestConte
xt requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext re
questContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext,
IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext,
AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplica
tion.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& compl
etedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configure
d to show verbose error messages using <customErrors mode="Off"/>. Conside
r using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/&g
t; in production environments.-->
at Microsoft.OData.Client.QueryResult.ExecuteQuery()
at Microsoft.OData.Client.DataServiceRequest.Execute[TElement](DataServiceCon
text context, QueryComponents queryComponents)
--- End of inner exception stack trace ---
at Microsoft.OData.Client.DataServiceRequest.Execute[TElement](DataServiceCon
text context, QueryComponents queryComponents)
at Microsoft.OData.Client.DataServiceContext.InnerSynchExecute[TElement](Uri
requestUri, String httpMethod, Nullable`1 singleResult, OperationParameter[] ope
rationParameters)
at Microsoft.OData.Client.DataServiceContext.Execute[TElement](Uri requestUri
, String httpMethod, Boolean singleResult, OperationParameter[] operationParamet
ers)
at Microsoft.OData.Client.DataServiceQuery`1.Execute()
at Microsoft.OData.Client.DataServiceQuery`1.GetEnumerator()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at TimetrackerOdataClient.Program.Main(String[] args) in C:\CodeProjects\Time
TrackerOData\timetracker-api-samplecode-master\TimetrackerOdataClient\Program.cs
:line 28
Please sign in to leave a comment.
Comments
7 comments