-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Connection Timeout Error with telemetry.crewai.com #254
Comments
Follow, same error: raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]. WARN urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='telemetry.crewai.com', port=4318): Max retries exceeded with url: /v1/traces (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x1378487c0>, 'Connection to telemetry.crewai.com timed out. (connect timeout=10)')). |
Related, but I am not able to run CrewAI due to the fact that it hits telemetry.crewai.com which I can't access through my company's proxy. It would be nice if the user could choose to optionally disable telemetry. |
Please fix this. I'm in the same situation as telemetry.crewai.com is blocked for my company as well. |
I cant even hit it in my local environment with telnet.
I also get this about a hundred times during runtime:
|
I agree to the previous speaker. Their must be a setting to turn those requests off. You can leave them on by default but allow disabling them for good. In best case it'd be a env var so that we do not need to do it over and over again. |
I want to add to this. |
it's not pretty, but a tiny bit of monkey patching might get ya there. Mind the typo on from crewai.telemtry import Telemetry
def noop(*args, **kwargs):
# with open("./logfile.txt", "a") as f:
# f.write("Telemetry method called and noop'd\n")
pass
for attr in dir(Telemetry):
if callable(getattr(Telemetry, attr)) and not attr.startswith("__"):
setattr(Telemetry, attr, noop) |
Bump, still is happening on my side, has a fix been pushed to pip ? |
I am also facing the same issue even after this. |
Issue #241 has been closed without any comments. We can assume at this point that there is no interest what so ever to implement a flag to turn of the telemetry calls. |
Yup np, I notice the issue doesn't happen while using Ollama, only while using lmstudio. So it's fine to close. |
It's not fine to close. It happens when the telemetry url is being blocked by a firewall. What you're using has nothing to do with the whether it is OK or not. It does look like there is a new flag, 'telemetry' for the crew to disable. |
Hey i have a fix for this you can just disable the telemetry calls on the tool usage class and in the crew class Like below You can comment all the telemetry related stuff and should work fine again |
bumped, this is an issue still and needs to be resolved. Add an opt out completely option. |
I just published a pypi package from my opt-out branch: https://pypi.org/project/crewai-clean/ You need to set Please test it out and leave a comment on #402 |
I just hit the same problem. I disabled telemetry with one line change to the file "<python_lib_dir>/site-packages/crewai/telemetry/telemetry.py" shown as diff below:
Indeed, crewai should probably provide an option to allow clients to opt out of telemetry. In my case, the company's security policy wouldn't allow this without legal process and approval. |
I faced the same issue as above. Please help me in resolving this: requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='telemetry.crewai.com', port=4318): Max retries exceeded with url: /v1/traces (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002311B65F310>, 'Connection to telemetry.crewai.com timed out. (connect timeout=10)')) |
Set the env var OTEL_SDK_DISABLED=true import os
from crewai import Agent, Task, Crew, Process
from crewai_tools import SerperDevTool
os.environ["OTEL_SDK_DISABLED"] = "true" |
@gardner , I did this as well, just slightly differently:
I get the following message over and over, but the failures were making the output completely unreadable.
|
@johnisanerd that warning looks like it come from the Open Telemetry Python SDK here. If you add this to your
You will not see connection errors. To test if If you then run without |
Hello ,
I hope this message finds you well. I am reaching out to report an issue that I encountered while using your project.
Description: I encountered a ConnectTimeout error when attempting to connect to telemetry.crewai.com on port 4318. The error message is as follows:
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='telemetry.crewai.com', port=4318): Max retries exceeded with url: /v1/traces (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f34caf38280>, 'Connection to telemetry.crewai.com timed out. (connect timeout=10)')
The text was updated successfully, but these errors were encountered: