Comments (5)
Yeah it is an encoding issue I could reproduce it. The client doesn't encode the request as UTF-8. There will be a fix within the next hours π
from java-client.
You should now be able to use version 3.1.1 from maven central.
from java-client.
Thank you for helping us. π₯
from java-client.
Hey, I tried to reproduce your problem but could not find any problem on my first try. I also tried your example with the correct values for cc, pc and city and it worked too.
JsonObject requestParameters = new JsonObject();
requestParameters.addProperty("type", "PERSON");
requestParameters.addProperty("name", "Test User");
requestParameters.addProperty("street", "MyStreet");
requestParameters.addProperty("city", "Berlin");
requestParameters.addProperty("pc", "10969");
requestParameters.addProperty("cc", "DE");
requestParameters.addProperty("voice", "+1.23324");
requestParameters.addProperty("email", "[email protected]");
requestParameters.addProperty("forceNew", true);
Request (account.login): {
"method": "account.login",
"params": {
"user": "redacted",
"pass": "redacted"
}
}
Response (account.login): {
"code": 1000,
"msg": "Command completed successfully",
"resData": {
"customerId": redacted,
"accountId": redacted,
"tfa": "0",
"builddate": "2017",
"version": "1"
}
}
Request (contact.create): {
"method": "contact.create",
"params": {
"type": "PERSON",
"name": "Test User",
"street": "MyStreet",
"city": "Berlin",
"pc": "10969",
"cc": "DE",
"voice": "+1.23324",
"email": "[email protected]",
"forceNew": true
}
}
Response (contact.create): {
"code": 1000,
"msg": "Command completed successfully",
"resData": {
"id": redacted
}
}
Request (account.logout): {
"method": "account.logout"
}
Response (account.logout): {
"code": 1500,
"msg": "Command completed successfully; ending session"
}
Maybe your values are not correct or known, especially city, pc and cc?
from java-client.
Thank you for your speedy reply.
I tried your data and it did work. You were right, my original test for the field street
had UTF-8 characters, namely the German 'sz' character 'Γ' and the German umlaut o character 'ΓΆ'. If those are sent within the street and presumably in any other field, it will respond with a 2400 error code.
Still, my tests with Postman and these character were successful, so it has to be a bug somewhere within the library and not the API. Maybe it is transformed somewhere to ASCII?
from java-client.
Related Issues (2)
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 java-client.