Comments (5)
If a No encoder to encode the value
error occurs it's likely related to the specifics codecs
you used. Note that you can skip encodeCodecs
/decodeCodecs
if you use the standard types of the xmlrpc spec.
Moreover after a quick look at the api, shouldn't it be res.partner
instead of res_partner
?
from dart-xmlrpc.
Hi thanks for the help, about the res.partner
on my odoo instance its named res_partner
just cause, and for the No encoder to encode the value
I've tried with and without
xml_rpc.intCodec, xml_rpc.boolCodec, xml_rpc.stringCodec, xml_rpc.dateTimeCodec, xml_rpc.base64Codec, xml_rpc.structCodec, xml_rpc.arrayCodec,
from dart-xmlrpc.
Assuming db
, pass
are strings and uid
is int, I don't see any reason the following code (without codecs) ends up with the errors No encoder to encode the value
.
final test = xml_rpc
.call(
url,
'execute_kw',
[
db,
uid,
pass,
'res_partner',
'search',
[
[
['is_company', '=', true]
]
],
])
.then((result) => print(result))
.catchError((error) => print(error));
You should try to launch your program in debug mode and follow step by step to understand where this error is coming from.
from dart-xmlrpc.
Fixed that error, turns out the uid
was instantiated a a Future<void>
so there was the error.
Thanks for the help!
from dart-xmlrpc.
Glad you find the bug :)
from dart-xmlrpc.
Related Issues (14)
- Invalid argument(s): No encoder to encode the value HOT 4
- Handshake error HOT 4
- Flutter: Response string encoding HOT 3
- Migrate the library to null safe version of dart HOT 4
- How to create new codec for list of struct HOT 2
- Authentication HOT 1
- Order and Limit? HOT 9
- Error occurred when running on web platform HOT 1
- Http cookie handling? HOT 1
- http.dart HOT 1
- Any plans on creating a xmlrpc server? HOT 4
- depends on meta ^1.1.8 HOT 2
- retry, cancel, timeout support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-xmlrpc.