Giter VIP home page Giter VIP logo

internet_speed_test's People

Contributors

aks3800 avatar tahamalas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

internet_speed_test's Issues

Wrong transfer rate

My speed test returns this result

"the transfer rate 3121.395, the percent 50.0, the speed unit is SpeedUnit.Mbps. "

I am pretty sure my Internet speed is not 3121.395 Mbps.

finished with error [-1022] Error Domain=NSURLErrorDomain Code=-1022

finished with error [-1022] Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://ipv4.ikoula.testdebit.info:8080/../download?size=200000, NSErrorFailingURLKey=http://ipv4.ikoula.testdebit.info:8080/../download?size=200000,

Doesn't work with Flutter 2.3 for me

Error:

The plugin internet_speed_test uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
lib\main.dart:1
e: C:\Users\siuba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\internet_speed_test-1.5.0\android\src\main\kotlin\com\tahamalas\internet_speed_test\InternetSpeedTestPlugin.kt: (50, 66): Type mismatch: inferred type is Activity? but Activity was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':internet_speed_test:compileDebugKotlin'.
> Compilation error. See log for more details

The plugin `internet_speed_test` uses a deprecated version of the Android embedding.

The plugin internet_speed_test uses a deprecated version of the Android
embedding.
To avoid unexpected runtime failures, or future build failures, try to see
if this plugin supports the Android V2 embedding. Otherwise, consider
removing it since a future release of Flutter will remove these deprecated
APIs.
If you are plugin author, take a look at the docs for migrating the plugin
to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Download Steps IOS VS ANDROID

On ios the steps take 1-2 steps wich is what is should take on a 1mb file size.

However on Android it takes 40 steps like almost everytime.

Kotlin Gradle plugin issue

I am getting this error:
FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':internet_speed_test' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 4s
Error: Gradle task assembleDebug failed with exit code 1

test server is down!

The upload and download test servers are down! Any solution to make the server come back live?!

Flutter warning

Flutter warns me about this plugin.
With new releases of Flutter this plugin will not work.
Any ideas for future releases of plugin?

CONNECTION_ERROR

ipv4.ikoula.testdebit.info url throws connection error. Is there an alternative service to replace the default url?

OnError: CONNECTION_ERROR, ipv4.ikoula.testdebit.info

Execution failed for task ':internet_speed_test:compileDebugKotlin'.

e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\internet_speed_test-1.5.0\android\src\main\kotlin\com\tahamalas\internet_speed_test\InternetSpeedTestPlugin.kt: (50, 66): Type mismatch: inferred type is Activity? but Activity was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':internet_speed_test:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 1s
Exception: Gradle task assembleDebug failed with exit code 1

Can this package get converted to native dart

I was wondering if this package or part of it can get converted to native dart and thus work on all platforms, and can get executed from server side as well?.

What part of this library require the flutter framework and what part of it only required native dart code.

speedTestError: Error status code 500, errorMessage: INVALID_HTTP_RESPONSE

I am having the result sometimes and sometimes it's throwing the error of INVALID_HTTP_RESPONSE and Error status code 500. even my onDone callback never calling

An error occurs in the Android device.

continuously on startUploadTesting (onProgress) method call and throw this error.
In startDownloadTesting it's working fine only Android, not in IOS

I/flutter ( 6394): arguments are {id: 1, percent: 0.0, transferRate: 0.0, type: 1, speedTestError: Error status code 500, errorMessage: INVALID_HTTP_RESPONSE}

I/flutter ( 6394): callbacks are {1: [Closure: (String, String) => Null, Closure: (double, double, SpeedUnit) => Null, Closure: (double, SpeedUnit) => Null]}

The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)

I am getting this error on iOS 17.2:

The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)

cancelListening = await internetSpeedTest.startDownloadTesting(
        onDone: (double transferRate, SpeedUnit unit) {

          SpeedUnit.Kbps;

          print('the transfer rate $transferRate');
          print('the transfer rate in mbps ${transferRate / 1024}');
        },
        onProgress: (double percent, double transferRate, SpeedUnit unit) {
          print('the transfer rate $transferRate');
          print('the transfer rate in mbps ${transferRate / 1024}');
        },
        onError: (String errorMessage, String speedTestError) {
          print('the transfer rate $errorMessage');
          print('the transfer rate in mbps $speedTestError');
        },
      );

Deprecated version of the Android embedding.

The plugin internet_speed_test_v1 uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Build fails on iOS

My iOS build is failing after I have installed this package. It fails regardless if I add a custom testserver or not.

Xcode build done.                                           31.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:25:27: error: missing argument label 'testServer:' in call
                startListening(args: args, flutterResult: result, methodName: "startDownloadTesting", argsMap["testServer"] as! String)
                              ^
                                                                                                      testServer: 
    /Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:28:27: error: missing argument label 'testServer:' in call
                startListening(args: args, flutterResult: result, methodName: "startUploadTesting", argsMap["testServer"] as! String)
                              ^
                                                                                                    testServer: 
    /Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:40:13: warning: variable 'fun' was never mutated; consider changing to 'let' constant
            var fun = {
            ~~~ ^
            let
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel

java.lang.ArithmeticException: Division by zero

Fatal Exception: java.lang.ArithmeticException: Division by zero
at java.math.BigDecimal.divide(BigDecimal.java:1030)
at fr.bmartel.speedtest.RepeatWrapper.getRepeatReport(RepeatWrapper.java:123)
at fr.bmartel.speedtest.SpeedTestTask.getReport(SpeedTestTask.java:211)
at fr.bmartel.speedtest.SpeedTestSocket.getLiveReport(SpeedTestSocket.java:10)
at fr.bmartel.speedtest.RepeatWrapper$2.run(RepeatWrapper.java:41)
at java.util.TimerThread.mainLoop(TimerThread.java:562)
at java.util.TimerThread.run(TimerThread.java:512)

  • Reported crash issue in Android devices only

API MISUSE Error

Good Evening Devs,

We are receiving the following error on iOS when running a Speed Test.
We are using the latest Flutter version (2.5.3)

flutter: arguments are {transferRate: 77061959.88956045, type: 2, id: 0, percent: 50}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: rate is 77061.0
flutter: 50.0
flutter: DOWNLOAD PROGRESS: 50.0
flutter: DOWNLOAD RATE AT PROGRESS: 770.6100000000001
flutter: arguments are {transferRate: 55640518.52435298, type: 2, id: 0, percent: 50}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: rate is 55640.0
flutter: 50.0
flutter: DOWNLOAD PROGRESS: 50.0
flutter: DOWNLOAD RATE AT PROGRESS: 556.4
flutter: arguments are {transferRate: 55363269.548861325, type: 0, id: 0, percent: 100}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: download steps is 3}
flutter: download steps is 188064}
flutter: DOWNLOAD RATE: 626.88
flutter: test 1
file is of size 200000 Bytes
Method name is startUploadTesting
id is 1
does contain key false
does contain key true
inside if
API MISUSE: NSURLSession delegate internet_speed_test.CustomHostUploadService: <internet_speed_test.CustomHostUploadService: 0x283374b90> (0x283374b90)
API MISUSE: dataTask:didReceiveResponse:completionHandler: completion handler not called

onDone- Call back not calling

onDone- Call back not calling and not working for our test server url

Always getting "Error is The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)"

I tested in iOS only

Won't even start downloading on iOS works fine on AN.

Greetings,

thank you very much for working on this idea. It works well for me on Android, but won't event start on ios:

_NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <6FDE6602-3A55-4B4B-9253-B1F6F2DD62CA>.<1>, NSUnderlyingError=0x600000ea3510 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}
flutter: arguments are {id: 0, speedTestError: The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.), type: 1}
flutter: callbacks are {0: [Closure: (String, String) => Null, Closure: (double, double, SpeedUnit) => Null, Closure: (double, SpeedUnit) => Stream<Null>]}
flutter: onError : The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.