API /api/v5/gradebooks/{GradebookNumber}/assignments return 500

67 views
Skip to first unread message

V L

unread,
Jul 9, 2021, 12:36:58 AM7/9/21
to Interfacing With Aeries
- /api/v5/gradebooks/{GradebookNumber}/assignments
- /api/v5/gradebooks/{GradebookNumber}/FinalMarks

Try https://demo.aeries.net/aeries/api/v5/gradebooks/4366926/assignments?cert=477abe9e7d27439681d62f4e0de1f5e1

<Error><Message>An error has occurred.</Message><ExceptionMessage>Conversion from string "" to type 'Integer' is not valid.</ExceptionMessage><ExceptionType>System.InvalidCastException</ExceptionType><StackTrace>   at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   at AeriesLib.SchoolGradeReportingConfig.Initialize() in D:\a\1\s\Src\AeriesLib\Configuration\SchoolGradeReportingConfig.vb:line 90
   at AeriesLib.Gradebook_Functions.GetDefaultGradingType(Int32 SC, Int32 LoGrade, Int32 HiGrade, SchoolGradeReportingConfig&amp; SchoolGradingType, String ConnectionString) in D:\a\1\s\Src\AeriesLib\Gradebook\Gradebook.vb:line 6050
   at AeriesLib.Gradebook.LoadTerms() in D:\a\1\s\Src\AeriesLib\Gradebook\Gradebook.vb:line 0
   at AeriesLib.Gradebook..ctor(Int32 SC, Int64 original_GN, String ConnectionString, String USR, Boolean LoadRules, Boolean LoadFinalMarks, Boolean LoadAssignmentTypes, Boolean LoadAssignments, Boolean LoadOptions, Boolean LoadSections, Boolean BetaLoadPerStandard, Boolean LoadAssignmentScaleMarks, Boolean LoadGradebookStudents, Boolean LoadTerms, List`1 StandardList, Boolean secondarySchool) in D:\a\1\s\Src\AeriesLib\Gradebook\Gradebook.vb:line 8894
   at AeriesLib.Gradebook..ctor(Int32 SC, Int64 original_GN, String ConnectionString, String USR, Boolean LoadRules, Boolean LoadFinalMarks, Boolean LoadAssignmentTypes, Boolean LoadAssignments, Boolean LoadOptions, Boolean LoadSections, Boolean BetaLoadPerStandard, Boolean LoadAssignmentScaleMarks, Boolean LoadGradebookStudents, Boolean LoadTerms, List`1 StandardList) in D:\a\1\s\Src\AeriesLib\Gradebook\Gradebook.vb:line 8824
   at Aeries.API.v5.Public.Controllers.GradebookV5Controller.GetAssignmentsAsList(Int64 gn, Int32 an, String UniqueID) in D:\a\1\s\Src\AeriesNET\Areas\api\Controllers\Public\GradebookController.vb:line 2270
   at Aeries.API.v5.Public.Controllers.GradebookV5Controller.GetAssignments(Int64 gn, Int32 an) in D:\a\1\s\Src\AeriesNET\Areas\api\Controllers\Public\GradebookController.vb:line 2192
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.&lt;&gt;c__DisplayClass10.&lt;GetExecutor&gt;b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.&lt;ExecuteAuthorizationFilterAsyncCore&gt;d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__1.MoveNext()</StackTrace><InnerException><Message>An error has occurred.</Message><ExceptionMessage>Input string was not in a correct format.</ExceptionMessage><ExceptionType>System.FormatException</ExceptionType><StackTrace>   at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)</StackTrace></InnerException></Error>
Reply all
Reply to author
Forward
0 new messages