facebook-python-business-sdk icon indicating copy to clipboard operation
facebook-python-business-sdk copied to clipboard

Batch remote creation does not properly encode NoneType in id field

Open grantt opened this issue 11 years ago • 2 comments

When adding a remote_create call to a batch an error occurs where the None value for id cannot be properly quoted by urllib.parse.quote. At this point in the add call the params should already be valid JSON thanks to _top_level_param_json_encode. Unfortunately, this function only attempts to apply json.dumps to a value if it is an instance of collections.Mapping, collections.Sequence, or bool and is not an instance of six.string_types. None evades this conditional and is left unmodified in the parameters leaving it to fail when it is passed later as a parameter.

grantt avatar Jan 22 '15 01:01 grantt

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

ghost avatar Aug 04 '15 18:08 ghost

I am going to close this one out. Since we have updated the batch call logic. If you still see this, feel free to reopen.

rituparnamukherjee avatar Apr 13 '16 17:04 rituparnamukherjee