Traceback (most recent call last):


 "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'function' and 'Just'

"Traceback (most recent call last):


 "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 346, in run_http_function

result = _function_handler.invoke_user_function(flask.request)


 "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 217, in invoke_user_function

return call_user_function(request_or_event)


 "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 210, in call_user_function

return self._user_function(request_or_event)


 "/user_code/main.py", line 68, in main

videoId = videoToAudio(request_json['url'])


 "/user_code/main.py", line 54, in videoToAudio

r = ydl.extract_info(url, download=False)


 "/env/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info

ie_result = ie.extract(url)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract

ie_result = self._real_extract(url)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 1681, in _real_extract

video_webpage = self._download_webpage(url, video_id)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 794, in _download_webpage

expected_status=expected_status)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 272, in _download_webpage_handle

*args, **compat_kwargs(kwargs))


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle

urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 602, in _request_webpage

self.report_download_webpage(video_id)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 922, in report_download_webpage

self.to_screen('%s: Downloading webpage' % video_id)


 "/env/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 914, in to_screen

self._downloader.to_screen('[%s] %s' % (self.IE_NAME, msg))


 "/env/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 503, in to_screen

return self.to_stdout(message, skip_eol, check_quiet=True)


 "/env/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 517, in to_stdout

self._write_string(output, self._screen_file)


 "/env/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 506, in _write_string

write_string(s, out=out, encoding=self.params.get('encoding'))


 "/env/local/lib/python3.7/site-packages/youtube_dl/utils.py", line 3102, in write_string

out.buffer.write(byt)
TypeError: string argument expected, got 'bytes'
