GithubHelp home page GithubHelp logo

bujupah / dart_ipify Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 1.0 52 KB

An unofficial client library ipify on dart.

Home Page: https://pub.dev/packages/dart_ipify

License: MIT License

Dart 99.68% Shell 0.32%
dart ipify ipify-api dart-ipify geo-ip-detection geo-location flutter

dart_ipify's Introduction

Heyo, I'm Khalil aka Bujupah! ๐Ÿ‘‹

Social Media

Khalil's Linkedin github Khalil's Whatsapp Khalil's Twitter

PS: Currently working on some grafana weird plugins.

dart_ipify's People

Contributors

baneeishaque avatar bujupah avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

xingyuemitu

dart_ipify's Issues

The request failed because it wasn't able to reach the ipify service - how fix it?

I using your packages in my flutter android app. Quite often I get this error:

Exception: The request failed because it wasn't able to reach the ipify service. This is most likely due to a networking error of some sort.

This probably happens when the app is in the background. I am using this library - background_fetch .

This is my stack exception:

dart_ipify_base.dart in Ipify._send at line 160 within dart_ipify Called from: <asynchronous suspension> dart_ipify_base.dart in Ipify.ipv4 at line 54 within dart_ipify Called from: <asynchronous suspension> dart_ipify_base.dart in Ipify.geo at line 128 within dart_ipify Called from: <asynchronous suspension> app_geo.dart in AppGeo.getCountry at line 8 within myapp Called from: <asynchronous suspension> home_page.dart in _HomePageState.getCountry at line 99 within myapp Called from: <asynchronous suspension> home_page.dart in _HomePageState._onBackgroundFetch at line 111 within myapp

where can I find the cause of the error? how can I fix this error? any tips?

video_player can't use

after I install this dart_ipify , video_player not working anymore, if I remove dart_ipify, video_player will work fine

Nothing return

final ipv4 = await Ipify.ipv4();

Try to get the IP, but nothing return

JSON parsing / null pointer exception

Thank you for the package.
I noticed the following issue in the crash reporting tool we use:

Describe the bug
Map for model As is sometimes null when parsing.

To Reproduce
Unsure how to reproduce, I saw the following crash log for an app:
geo.dart in new As.fromMap at line 245 within dart_ipify
geo.dart in new GeoModel.fromMap at line 56 within dart_ipify
geo.dart in new GeoModel.fromJson at line 65 within dart_ipify
dart_ipify_base.dart in Ipify.geo at line 133 within dart_ipify

Expected behavior
As or all of its fields should be set to null and it shouldn't throw an exception.

Smartphone (please complete the following information):

  • Device: many different types
  • OS: both iOS and Android
  • Version: 1.1.1

Additional context
maybe ~5% of users experience it

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.