-
Notifications
You must be signed in to change notification settings - Fork 22
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
I set the flag to AllowStringFaultCode
and it keeps throwing the error Exception thrown: 'CookComputing.XmlRpc.XmlRpcTypeMismatchException' in Kveer.XmlRPC.dll: 'fault response contains string value where integer expected [fault response : struct mapped to type Fault : member faultCode mapped to type Int32]'
#16
Comments
epregoy, please provide the steps to reproduce the error. |
I am using this library for consuming odoo xml-rpc api. Odoo not return integer fault code. Even though I set the flag If Finally with odoo, there is another problem. Odoo return detail error text as `
` |
Hello @chitswe, i have the same problem and I don't know enough about this part at the moment. In my case, i'm trying some operation using this git repository to add some PoS Order : Actually, i would like to know where can I paste this code you wrote so I don't get this error anymore? Gabin, |
UP, hope you can help me @ieski |
Sorry for the late response, I wasn't looking at my notifications. My conclusion with all this was that Odoo was not consistent. I end up just retrying the request and most of the time it worked in the second request. I'm not working on that project anymore, so, I can't provide any steps right now. Hope it helps. |
Same here! |
Hello, this issue is still current and happens running a request on the latest version of Odoo (17). Is there any update on this? |
@dinodipardo Please provide steps to reproduce it. From what @chitswe said, there is two issue:
|
Hello, I digged a bit deeper in the cause of the exception. This is what Odoo is returning as innerxml which is passed in structNode and causing the exception in this try block: try
You are not allowed to access 'Website Visitor' (website.visitor) records. This operation is allowed for the following groups: Contact your administrator to request access if necessary. If needed I can provide more details. Would be great to have this fixed .... |
As you said yourself, Odoo is returning a string in the faultCode node, where XML-RPC is expecting a number (https://xmlrpc.com/spec.md). You can also use the snippet proposed by @chitswe: #16 (comment) |
I'll log a ticket today for this and meanwhile I've implemented a temp fix for this myself. Once the ticket has been logged I'll update here with the ticket ref. |
I set the flag to
AllowStringFaultCode
and it keeps throwing the errorException thrown: 'CookComputing.XmlRpc.XmlRpcTypeMismatchException' in Kveer.XmlRPC.dll: 'fault response contains string value where integer expected [fault response : struct mapped to type Fault : member faultCode mapped to type Int32]'
Originally posted by @epgeroy in #7 (comment)
The text was updated successfully, but these errors were encountered: