camel-ai / camel

🐫 CAMEL: Finding the Scaling Law of Agents. A multi-agent framework. https://www.camel-ai.org
https://www.camel-ai.org
Apache License 2.0
5.29k stars 640 forks source link

[BUG] HuggingFace Tool Connection Problem #268

Closed HalberdOfPineapple closed 1 year ago

HalberdOfPineapple commented 1 year ago

Required prerequisites

What version of camel are you using?

0.1.0

System information

3.8.17 (default, Jul 5 2023, 21:04:15) [GCC 11.2.0] linux 0.1.0

Problem description

The newly submitted commit at #245 indicates there occured problem in the tests of embodied agents and huggingface tools. The core error message is: urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x7fade8303220>: Failed to resolve 'jwtq338l7l47q5zh.us-east-1.aws.endpoints.huggingface.cloud' ([Errno -2] Name or service not known) The 3 failed tests in pytest_package_full_test seem to have the similar problem. I guess this might be because HuggingFace changes their server settings. Hopefully this can be solved.

Reproducible example code

pass

Traceback

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jwtq338l7l47q5zh.us-east-1.aws.endpoints.huggingface.cloud', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fade8303220>: Failed to resolve 'jwtq338l7l47q5zh.us-east-1.aws.endpoints.huggingface.cloud' ([Errno -2] Name or service not known)"))

Expected behavior

No response

Additional context

No response

dandansamax commented 1 year ago

Looks like the hugging face endpoint is down, which the hugging-face remote exection must invoke. Sadly, we can do nothing about that. I suggest we ignore this error until the hugging-face fix it.

dandansamax commented 1 year ago

I push a branch named ignore_huggingface_error. Please consider merging it.

HalberdOfPineapple commented 1 year ago

Fixed by @dandansamax in #245