swatiswati / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

"An unknown error occurred" on invoking users_setStatus method #324

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. invoked users_setStatus() of FacebookJsonRestClient with a status
2. again I tried to invoke users_setStatus()with the same status as above step, 
it throws "An unknown error occurred" exception.

What is the expected output? 
It would be better if it throws exception with anyone of the following 
descriptions, as with the current description I am not able to identify the 
exact reason of failure. 

"Forbidden exception" or "Cannot set with  the same status"

What do you see instead?
I am getting an exception with description "An unknown error occurred".

What version of the product are you using? On what operating system?
I am uinsg facebook-java-api-3.0.2 api on Windows machine

Please provide any additional information below.
-> Please find below the snippet of the stacktrace.
Caused by: com.google.code.facebookapi.FacebookException: An unknown error 
occurred
    at com.google.code.facebookapi.FacebookJsonRestClient.parseCallResult(FacebookJsonRestClient.java:354)
    at com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:535)
    at com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:472)
    at com.google.code.facebookapi.ExtensibleClient.users_setStatus(ExtensibleClient.java:1462)

Original issue reported on code.google.com by mail2m...@gmail.com on 18 Jun 2010 at 1:16