Comments (2)
Hi @yeltayev22, you should be able to provide a customized *http.Client
with the custom RoundTripper
implementation. This would then allow you to make requests in a way you want and intercept any errors before they are returned all the way to the library (and potentially apply a retry with custom tokens).
I intentionally left this on a basic level and opened the option to set a custom *http.Client
via NewClient(endpoint string, HttpClient(*http.Client))
as from the way I see there are too many cases to cover to make it flexible enough for most needs.
Otherwise from pure XML-RPC standpoint there is a Fault
struct that would be returned by the remote system and it could contain that information. But I would assume that in your case error needs to be handled on the HTTP level and not XML-RPC protocol level.
from go-xmlrpc.
As there has been no feedback or response, I assume this isn't a problem anymore and will therefore close this issue.
If you need any additional help, please feel free to reach out!
from go-xmlrpc.
Related Issues (17)
- Support for decoding to aliased types
- Support decoding to pointer of struct
- Passing arguments to the call
- Dependabot couldn't parse the config file at .dependabot/config.yml
- How are the parameters sorted?
- Need a script to transform xml request to RPC call struct HOT 2
- panic when fields not define on response struct HOT 2
- Your .dependabot/config.yml contained invalid details
- Possible goroutines leak HOT 1
- Allow customization of User-Agent
- Error: reading body number of exported fields (3) on response type doesnt match expectation (1) HOT 11
- How to decode a struct of arbitrary fields? HOT 4
- Unable to decode empty strings properly HOT 3
- Non Struct Response caused Panic HOT 3
- Unmarshal to struct HOT 9
- Failure to produce request with a []any as params HOT 7
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 go-xmlrpc.