towhee icon indicating copy to clipboard operation
towhee copied to clipboard

[Bug]: SSLError: HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))

Open Rosesqy opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

On a databricks notebook, When I try to run

towhee.glob(pattern).exception_safe().image_decode().image_embedding().timm(model_name="resnet50")
        .drop_empty()
        .tensor_normalize()
        .to_list()

, it shows error: SSLError: HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))

Expected Behavior

When I run the command locally, it can successfully generate the embedding vectors for the images in pattern

Steps To Reproduce

1-2. In databricks notebook, version 10.4 LTS (includes Apache Spark 3.2.1, Scala 2.12), python version 3.8 3. save png images in the "pattern", want to generate embeddings for all the images in the file, so run

towhee.glob(pattern).exception_safe().image_decode().image_embedding().timm(model_name="resnet50")
        .drop_empty()
        .tensor_normalize()
        .to_list()
  1. it goes to the SSL error

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93): v0.7.2
- OS(Ubuntu or CentOS): Ubuntu
- CPU/Memory:
- GPU:
- Others:

Anything else?

No response

Rosesqy avatar Jul 14 '22 21:07 Rosesqy

@reiase

Could you help to have a look at this issue?

Thanks.

binbinlv avatar Jul 15 '22 02:07 binbinlv

I thought it might not be a bug, I had the same problem, but when I turned the system proxy off it worked fine.

jin1ming avatar Jul 15 '22 10:07 jin1ming

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen.

stale[bot] avatar Aug 14 '22 13:08 stale[bot]