Date
1 - 2 of 2
Unparseable JSON http response on updategroup invalid_value
/updategroup is returning both an error object and group object separated by a newline when I get an invalid_value error, which means the http response can't be parsed as json (without first parsing/splitting newlines. Is this intentional, or is there a missing return statement somewhere?
In my case, I had accidentally passed "polls_access=group_access_none" (which is the "disable" value the other features use, but polls uses "polls_access_none"). The output was: {"object":"error","type":"invalid_value","extra":"polls_access"}\n
{"id":####,"object":"group","created":"2019-05-16T18:30:43.092324171-07:00","updated":"2019-05-16T18:30:43.092324171-07:00","title":"","name":[... and so on]}\n (I've added the literal \n's for clarity) Regards, Eric
|
|
Hi Eric, On Fri, May 17, 2019 at 3:21 PM Eric Searcy <eric@...> wrote: /updategroup is returning both an error object and group object separated by a newline when I get an invalid_value error, which means the http response can't be parsed as json (without first parsing/splitting newlines. Is this intentional, or is there a missing return statement somewhere? Thanks for the bug report. It was a missing return statement. It's been fixed. Mark
|
|