Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: ocr-save crashes because filename not provided #10

Open
mdable2 opened this issue Jul 13, 2019 · 0 comments
Open

BUG: ocr-save crashes because filename not provided #10

mdable2 opened this issue Jul 13, 2019 · 0 comments
Labels
bug Something isn't working release 1

Comments

@mdable2
Copy link
Owner

mdable2 commented Jul 13, 2019

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'

@mdable2 mdable2 changed the title ocr-save crashes because filename not provided BUG: ocr-save crashes because filename not provided Jul 19, 2019
@mdable2 mdable2 added the bug Something isn't working label Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release 1
Projects
None yet
Development

No branches or pull requests

1 participant