Traceback (most recent call last):


 "src/python/bot/startup/run_bot.py", line 89, in task_loop

commands.process_command(task)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/commands.py", line 147, in wrapper

return func(task)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/commands.py", line 377, in process_command

run_command(task_name, task_argument, job_name)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/commands.py", line 201, in run_command

task_module.execute_task(task_argument, job_name)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/fuzz_task.py", line 1968, in execute_task

session.run()


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/fuzz_task.py", line 1896, in run

self.do_blackbox_fuzzing(fuzzer, fuzzer_directory, self.job_type))


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/fuzz_task.py", line 1663, in do_blackbox_fuzzing

fuzzer_metadata) = self.generate_blackbox_testcases(


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/fuzz_task.py", line 1556, in generate_blackbox_testcases

store_fuzzer_run_results(testcase_file_paths, fuzzer, fuzzer_command,


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/bot/tasks/fuzz_task.py", line 875, in store_fuzzer_run_results

fuzzer_logs.upload_script_log(fuzzer_output)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/metrics/fuzzer_logs.py", line 121, in upload_script_log

upload_to_logs(


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/metrics/fuzzer_logs.py", line 106, in upload_to_logs

if storage.write_data(contents, log_path):


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/base/retry.py", line 89, in _wrapper

result = func(*args, **kwargs)


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/google_cloud_utils/storage.py", line 852, in write_data

return _provider().write_data(


 "/home/a/clusterfuzz/localbots/my_first_local_bot/clusterfuzz/src/python/google_cloud_utils/storage.py", line 498, in write_data

f.write(data)
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/usr/lib64/python3.5/asyncio/tasks.py", line 241, in _step

result = coro.throw(exc)


 "/opt/srv/homeassistant/.virtualenvs/hass_venv/lib/python3.5/site-packages/homeassistant/core.py", line 1015, in _event_to_service_call

yield from service_handler.func(service_call)


 "/opt/srv/homeassistant/.virtualenvs/hass_venv/lib/python3.5/site-packages/homeassistant/components/notify/__init__.py", line 136, in async_notify_message

yield from notify_service.async_send_message(**kwargs)


 "/usr/lib64/python3.5/asyncio/futures.py", line 380, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib64/python3.5/asyncio/tasks.py", line 304, in _wakeup

future.result()


 "/usr/lib64/python3.5/asyncio/futures.py", line 293, in result

raise self._exception


 "/usr/lib64/python3.5/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/opt/srv/homeassistant/.virtualenvs/hass_venv/lib/python3.5/site-packages/homeassistant/components/notify/telegram.py", line 105, in send_message

self.send_photo(photo_data)


 "/opt/srv/homeassistant/.virtualenvs/hass_venv/lib/python3.5/site-packages/homeassistant/components/notify/telegram.py", line 156, in send_photo

chat_id=self._chat_id, photo=photo, caption=caption)


 "/opt/srv/homeassistant/.homeassistant/deps/telegram/bot.py", line 125, in decorator

result = func(self, *args, **kwargs)


 "/opt/srv/homeassistant/.homeassistant/deps/telegram/bot.py", line 151, in decorator

result = self._request.post(url, data, timeout=kwargs.get('timeout'))


 "/opt/srv/homeassistant/.homeassistant/deps/telegram/utils/request.py", line 198, in post

data = Input
(data)


 "/opt/srv/homeassistant/.homeassistant/deps/telegram/inputfile.py", line 87, in __init__

self.mimetype = mimetypes.guess_type(self.filename)[0] or DEFAULT_MIME_TYPE


 "/usr/lib64/python3.5/mimetypes.py", line 289, in guess_type

return _db.guess_type(url, strict)


 "/usr/lib64/python3.5/mimetypes.py", line 114, in guess_type

scheme, url = urllib.parse.splittype(url)


 "/usr/lib64/python3.5/urllib/parse.py", line 862, in splittype

match = _typeprog.match(url)
TypeError: expected string or bytes-like object
