necodeIT / lb_planner_plugin

Moodle Plugin for the LB Planner app
Other
1 stars 0 forks source link

Get Plugin going #4

Closed RiedleroD closed 1 month ago

RiedleroD commented 2 months ago

latest error message:

flutter: 2024-08-20T01:26:59.220552: [FINER] Services.Network.DioNetworkService: POST request received response    Response: []    Status code: 200    Headers: cache-control: private, must-revalidate, pre-check=0, post-check=0, max-age=0access-control-allow-origin: *date: Mon, 19 Aug 2024 23:26:59 GMTaccept-ranges: nonecontent-length: 2strict-transport-security: max-age=63072000content-type: application/jsonpragma: no-cacheserver: Apacheexpires: Thu, 01 Jan 1970 00:00:00 GMT    Request URI: https://projekte.tgm.ac.at/lbplaner4//webservice/rest/server.php     
flutter: 2024-08-20T01:26:59.220843: [FINER] Services.Api.MoodleApiService: local_lbplanner_modules_get_all_modules returned body [] 
flutter: 2024-08-20T01:26:59.221009: [WARNING] Datasources.MoodleTask.StdMoodleTaskDatasource: Failed to fetch all tasks ApiServiceException: Response is array but expected single object (status code: null) 
#0      ApiServiceResponseUtils.assertJson (package:lb_planner/modules/moodle/utils/api_service_utils.dart:36:7)#1      StdMoodleTaskDatasource.getTasks (package:lb_planner/modules/moodle/infra/datasources/std_moodle_task_datasource.dart:54:16)<asynchronous suspension>#2      AsyncValue.guard (package:mcquenji_core/src/domain/models/async_value.dart:120:22)<asynchronous suspension>#3      AsyncRepoExt.guard (package:mcquenji_core/src/utils/repository_utils.dart:97:7)<asynchronous suspension>#4      MoodleTasksRepository.build (package:lb_planner/modules/moodle/presentation/repositories/moodle_tasks_repository.dart:21:5)<asynchronous suspension>#5      Repository._build (package:mcquenji_core/src/presentation/repositories/repository.dart:92:5)<asynchronous suspension>

unsure what to do, module services are not my part and I couldn't figure out why it wasn't returning any modules nor why the frontend was claiming that it wanted a singular object instead of an array in local_lbplanner_modules_get_all_modules

RiedleroD commented 1 month ago

merging this now since it's the main working branch