Flutter uses http to retrieve the background interface, error: FormatException: Invalid radix-10 numberFormatException: Invalid radix-10 numberFlutter: validating Radix 10 numbersAnother exception was thrown: FormatException: Invalid radix-10 numberFlutter shared preferences crash on iPhone 5 (Invalid radix-16 number)Invalid radix-10 number index while generating route in flutterFlutter Http Request: Invalid response status codeFormatException: Invalid radix-10 numberis there away to ping heroku app from windows iam getting request time outerror when using https with flutter http.dart packageUse WebServices provided by Dart codegn generated by swagger in my Flutter appFlutter: Consume a web service provided by Dart-client-generated file from swaggerHub

Pluses and stars inside square visual quiz

Can the UK veto its own extension request?

Might have gotten a coworker sick, should I address this?

What officially disallows US presidents from driving?

The Planck constant for mathematicians

How to help my 2.5-year-old daughter take her medicine when she refuses to?

Where does the expression "triple-A" come from?

Relocation error, error code (127) after last updates

Leaving out pronouns in informal conversation

How seriously should I take a CBP interview where I was told I have a red flag and could only stay for 30 days?

Do any aircraft carry boats?

How to stabilise the bicycle seatpost and saddle when it is all the way up?

Resume: How to quantify my contributions as a software engineer?

Why did it become so much more expensive to start a university?

Can a corpse possessed by a Dybbuk be turned via Turn Undead?

Why isn't `typename` required for a base class that is a nested type?

Do I need 3 RGB channels for a spectrogram CNN?

Maintenance tips to prolong engine lifespan for short trips

Uncovering the Accelerated Dragon opening

Kerning feedback on logo

How are chord ratios developed exactly?

What is a realistic time needed to get a properly trained army?

What exactly is a marshrutka (маршрутка)?

Where can I get an anonymous Rav Kav card issued?



Flutter uses http to retrieve the background interface, error: FormatException: Invalid radix-10 number


FormatException: Invalid radix-10 numberFlutter: validating Radix 10 numbersAnother exception was thrown: FormatException: Invalid radix-10 numberFlutter shared preferences crash on iPhone 5 (Invalid radix-16 number)Invalid radix-10 number index while generating route in flutterFlutter Http Request: Invalid response status codeFormatException: Invalid radix-10 numberis there away to ping heroku app from windows iam getting request time outerror when using https with flutter http.dart packageUse WebServices provided by Dart codegn generated by swagger in my Flutter appFlutter: Consume a web service provided by Dart-client-generated file from swaggerHub






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















Use http to get background data in flutter, but the debug console reports FormatException: Invalid radix-10 number. Why?



The library has been introduced and is the latest version
I thought it was the wrong interface. Now I changed it to the correct one that I can access.



_get() async
print(3);
try
var uri = Uri.http('https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web','');
var response = await http.get(uri);
print(response);
catch (error)
print(error);




Error result:



I/flutter ( 3573): FormatException: Invalid radix-10 number










share|improve this question



















  • 1





    Possible duplicate of FormatException: Invalid radix-10 number

    – shadowsheep
    Mar 28 at 10:17

















-1















Use http to get background data in flutter, but the debug console reports FormatException: Invalid radix-10 number. Why?



The library has been introduced and is the latest version
I thought it was the wrong interface. Now I changed it to the correct one that I can access.



_get() async
print(3);
try
var uri = Uri.http('https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web','');
var response = await http.get(uri);
print(response);
catch (error)
print(error);




Error result:



I/flutter ( 3573): FormatException: Invalid radix-10 number










share|improve this question



















  • 1





    Possible duplicate of FormatException: Invalid radix-10 number

    – shadowsheep
    Mar 28 at 10:17













-1












-1








-1








Use http to get background data in flutter, but the debug console reports FormatException: Invalid radix-10 number. Why?



The library has been introduced and is the latest version
I thought it was the wrong interface. Now I changed it to the correct one that I can access.



_get() async
print(3);
try
var uri = Uri.http('https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web','');
var response = await http.get(uri);
print(response);
catch (error)
print(error);




Error result:



I/flutter ( 3573): FormatException: Invalid radix-10 number










share|improve this question














Use http to get background data in flutter, but the debug console reports FormatException: Invalid radix-10 number. Why?



The library has been introduced and is the latest version
I thought it was the wrong interface. Now I changed it to the correct one that I can access.



_get() async
print(3);
try
var uri = Uri.http('https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web','');
var response = await http.get(uri);
print(response);
catch (error)
print(error);




Error result:



I/flutter ( 3573): FormatException: Invalid radix-10 number







flutter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 9:22









zhangzhang

83 bronze badges




83 bronze badges










  • 1





    Possible duplicate of FormatException: Invalid radix-10 number

    – shadowsheep
    Mar 28 at 10:17












  • 1





    Possible duplicate of FormatException: Invalid radix-10 number

    – shadowsheep
    Mar 28 at 10:17







1




1





Possible duplicate of FormatException: Invalid radix-10 number

– shadowsheep
Mar 28 at 10:17





Possible duplicate of FormatException: Invalid radix-10 number

– shadowsheep
Mar 28 at 10:17












2 Answers
2






active

oldest

votes


















1
















You are using the Uri.http() in a wrong way. Please read: doc



Example:



// http://example.org/path?q=dart.
new Uri.http("example.org", "/path", "q" : "dart" );





share|improve this answer
































    0
















    maybe you can try dio to get it.



    --



    First import dio



    import 'package:dio/dio.dart';


    and add it in pubspec.yaml



    dependencies:
    dio: ^1.0.13


    and try this:



    _get() async
    Dio dio = new Dio();
      Response response;

    try
    response = await dio.get(
    "https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web");
    print(response);
    catch (e)
    print(e);







    share|improve this answer



























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394024%2fflutter-uses-http-to-retrieve-the-background-interface-error-formatexception%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1
















      You are using the Uri.http() in a wrong way. Please read: doc



      Example:



      // http://example.org/path?q=dart.
      new Uri.http("example.org", "/path", "q" : "dart" );





      share|improve this answer





























        1
















        You are using the Uri.http() in a wrong way. Please read: doc



        Example:



        // http://example.org/path?q=dart.
        new Uri.http("example.org", "/path", "q" : "dart" );





        share|improve this answer



























          1














          1










          1









          You are using the Uri.http() in a wrong way. Please read: doc



          Example:



          // http://example.org/path?q=dart.
          new Uri.http("example.org", "/path", "q" : "dart" );





          share|improve this answer













          You are using the Uri.http() in a wrong way. Please read: doc



          Example:



          // http://example.org/path?q=dart.
          new Uri.http("example.org", "/path", "q" : "dart" );






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 10:07









          BlasankaBlasanka

          5,0804 gold badges31 silver badges44 bronze badges




          5,0804 gold badges31 silver badges44 bronze badges


























              0
















              maybe you can try dio to get it.



              --



              First import dio



              import 'package:dio/dio.dart';


              and add it in pubspec.yaml



              dependencies:
              dio: ^1.0.13


              and try this:



              _get() async
              Dio dio = new Dio();
                Response response;

              try
              response = await dio.get(
              "https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web");
              print(response);
              catch (e)
              print(e);







              share|improve this answer





























                0
















                maybe you can try dio to get it.



                --



                First import dio



                import 'package:dio/dio.dart';


                and add it in pubspec.yaml



                dependencies:
                dio: ^1.0.13


                and try this:



                _get() async
                Dio dio = new Dio();
                  Response response;

                try
                response = await dio.get(
                "https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web");
                print(response);
                catch (e)
                print(e);







                share|improve this answer



























                  0














                  0










                  0









                  maybe you can try dio to get it.



                  --



                  First import dio



                  import 'package:dio/dio.dart';


                  and add it in pubspec.yaml



                  dependencies:
                  dio: ^1.0.13


                  and try this:



                  _get() async
                  Dio dio = new Dio();
                    Response response;

                  try
                  response = await dio.get(
                  "https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web");
                  print(response);
                  catch (e)
                  print(e);







                  share|improve this answer













                  maybe you can try dio to get it.



                  --



                  First import dio



                  import 'package:dio/dio.dart';


                  and add it in pubspec.yaml



                  dependencies:
                  dio: ^1.0.13


                  and try this:



                  _get() async
                  Dio dio = new Dio();
                    Response response;

                  try
                  response = await dio.get(
                  "https://short-msg-ms.juejin.im/v1/topicList/recommend?uid=&device_id=&token=&src=web");
                  print(response);
                  catch (e)
                  print(e);








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 28 at 10:43









                  Kelly TungKelly Tung

                  1




                  1































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394024%2fflutter-uses-http-to-retrieve-the-background-interface-error-formatexception%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript