BUG: ocr-save crashes because filename not provided
mdable2 opened this issue · 0 comments
Looks like I am not passing in a filename in "detect_text" message object - in the tutorial they pass in a filename so I most likely need to do it similarly.
D ocr-extract 615059943024907 2019-07-13 19:10:33.657 Function execution took 2302 ms, finished with status: 'ok' D ocr-save 615055963089295 2019-07-13 19:10:34.079 Function execution started E ocr-save 615055963089295 2019-07-13 19:10:34.088 Traceback (most recent call last): File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 383, in run_background_function _function_handler.invoke_user_function(event_object) File "/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) File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 214, in call_user_function event_context.Context(**request_or_event.context)) File "/user_code/main.py", line 65, in save_result filename = validate_message(message, 'filename') File "/user_code/main.py", line 85, in validate_message property {} in the request'.format(param, param)) ValueError: filename is not provided. Make sure you have property filename in the request D ocr-save 615055963089295 2019-07-13 19:10:34.090 Function execution took 12 ms, finished with status: 'crash'