-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request error with path #6
Comments
What's the result of Dio dio = new Dio()
..options.baseUrl = "http://www.xxx.com/";
...
var response = await dio.post("rest.php", data: data); |
Thx, dart:io's HTTP does not need to start with http/https, I did not modify this part of the code in my code. |
I am having this issue as well.. Only occurs on dio.post... if I do a hot reload, without changing anything on the code the dio.post works. But if I restart the app using flutter run, the error occurs again. |
@TensaiZero Could you provide some debug info? if the baseurl is right when you restart? May you need to add some "print" logs or breakpoints . |
@wendux Got it , just the base url. Thank you very much. Haven't initialized it on start. |
…was set (#6) Co-authored-by: ipcjs.mac <gipcjs@gmail.com>
StackTrace
my code
describe
My base url is
http://www.xxx.com/rest.php
.Using the parameters of the form to distinguish the business logic.
If URL does not apply to restful, can you not use your plugin?
The text was updated successfully, but these errors were encountered: