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;
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
add a comment |
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
1
Possible duplicate of FormatException: Invalid radix-10 number
– shadowsheep
Mar 28 at 10:17
add a comment |
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
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
flutter
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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" );
add a comment |
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);
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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" );
add a comment |
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" );
add a comment |
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" );
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" );
answered Mar 28 at 10:07
BlasankaBlasanka
5,0804 gold badges31 silver badges44 bronze badges
5,0804 gold badges31 silver badges44 bronze badges
add a comment |
add a comment |
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);
add a comment |
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);
add a comment |
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);
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);
answered Mar 28 at 10:43
Kelly TungKelly Tung
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Possible duplicate of FormatException: Invalid radix-10 number
– shadowsheep
Mar 28 at 10:17