The specific error reports are as follows:
flutter/lib/ui/ui_ dart_ state.cc(209)] Unhandled Exception: type ‘int’ is not a subtype of type ‘Iterable< dynamic>’
The reason is that I use the get request and the parameters are not spliced after the URL, that is, in this form, XXX?X = 1 & amp; y=2。
But use Map< String, dynamic>? Query a map to place parameters.
Check the source code to find the reason. If the value in query is not of string type, it will be converted to an iterator, and I put it as an int, so the conversion reports an error. The solution is to convert all the values in the query map into strings.
query?.map((key, value) => MapEntry(key, value.toString()))
Read More:
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- Error domain = nsurlerrordomain code = – 1001 “request timeout occurred in swift alamofire get request. ” UserInfo={NSUnderlyingErro
- Four ways to get Django parameters in request
- After upgrading windows 11, Wireshark can’t get list of interfaces: packetgetadapternames reports an error
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- Android network request framework okhttputils reports an error (okhttp3 cannot be found)
- Flask Request an extension before_request after_request errorhandler
- The problem that headers [‘content-type ‘] does not work is set in the Axios get method request interface
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- Mybatis integrates Oracle query and reports an error in the datetime type field
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- Let reports an error in idea
- TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body.
- After verifying parameters with validation, springboot reports an error: no constructor found in package name + class name
- Request cannot get static resource
- Running Django (2.2) project in Python 3.7.9 reports an error
- Nacos starts in cluster mode and reports an error