-
-
Notifications
You must be signed in to change notification settings - Fork 952
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
parseError post message #579
Comments
I have to say that for some reason, the server gets the json but in my application I have the error: "onError errorDetail : parseError". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this code and I have always the same error "onError errorDetail : parseError". I have tried to send a simple JSON but it doesn't work. What could be the problem the problem in the code?
btn_ok_mois.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View view) {
//POST JSON MOIS
JSONObject jsonObjectMOIS = new JSONObject();
try {
String valueMinMois = et_min_mois.getText().toString();
int finalvalueMinMois = Integer.parseInt(valueMinMois);
jsonObjectMOIS.put("minMois", finalvalueMinMois);
String valueMaxMois = et_max_mois.getText().toString();
int finalvalueMaxMois = Integer.parseInt(valueMaxMois);
jsonObjectMOIS.put("maxMois", finalvalueMaxMois);
The text was updated successfully, but these errors were encountered: