Skip to content

Functions hangs when trying to read stream from URL #221

@priyaananthasankar

Description

@priyaananthasankar

This issue happens on my Mac locally. I am unable to isolate the cause.
Attached is the zip file of my function, it inferences Tensorflow InceptionV3 model

Added sample code in init.py to read from img url (followed predict shark example) but when running the function, it hangs - breakpoint revealed it hangs while trying to do urllib read:

image_url = req.params.get('img')
image_data = urllib.request.urlopen(image_url).read()

Unzip the attached file and just create a virtual environment and pip install to see the results.
TEST.zip

This problem was steadily reproducible if a wrong file path was given to tensorflow's File open method,

outside of functions it fails, but within functions it hangs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions