Unhandled Exception

mail@pastecode.io avatar
unknown
plain_text
a year ago
6.6 kB
1
Indexable
Never
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╔╣ Request ║ GET 
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ║  https://api.loli.applover.dev/api/v1/contents/saved?page=1&items_per_page=4
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╔ Query Parameters 
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ page: 1
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ items_per_page: 4
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╔ Headers 
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ contentType: null
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ responseType: ResponseType.json
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ followRedirects: true
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ connectTimeout: 20000
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╟ receiveTimeout: 20000
2023-01-18 15:58:47.362 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ╔╣ Response ║ GET ║ Status: 200 OK
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║  https://api.loli.applover.dev/api/v1/contents/saved?page=1&items_per_page=4
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ╔ Body
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║    {
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║         collection: [
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║         ],
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║         pagination: {
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║             items_length: 0,
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║             page: 1,
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║             page_count: 1
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║        }
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║    }
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ║
2023-01-18 15:58:47.638 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╔╣ Request ║ GET 
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ║  https://api.loli.applover.dev/api/v1/contents/ranking
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╔ Headers 
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╟ contentType: null
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╟ responseType: ResponseType.json
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╟ followRedirects: true
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╟ connectTimeout: 20000
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╟ receiveTimeout: 20000
2023-01-18 15:58:47.640 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ╔╣ Response ║ GET ║ Status: 200 OK
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ║  https://api.loli.applover.dev/api/v1/contents/ranking
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ╔ Body
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ║
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ║    [
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ║    [
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ║
2023-01-18 15:58:47.705 8079-8142/? I/flutter: ╚══════════════════════════════════════════════════════════════════════════════════════════╝
2023-01-18 15:58:47.708 8079-8142/? E/flutter: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (end): Invalid value: Only valid value is 0: 5
    #0      RangeError.checkValidRange (dart:core/errors.dart:363)
    #1      _GrowableList.sublist (dart:core-patch/growable_array.dart:84)
    #2      BeatsLibraryCubit.fetchContent.<anonymous closure>.<anonymous closure> (package:loliup/app/pages/beats_library_page/cubit/beats_library_cubit.dart:188)
    #3      Right.fold (package:dartz/src/either.dart:200)
    #4      BeatsLibraryCubit.fetchContent.<anonymous closure> (package:loliup/app/pages/beats_library_page/cubit/beats_library_cubit.dart:185)
    <asynchronous suspension>