Skip to content

Disable LangSmith #238

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

Closed
austinmw opened this issue Oct 30, 2023 · 4 comments
Closed

Disable LangSmith #238

austinmw opened this issue Oct 30, 2023 · 4 comments
Assignees

Comments

@austinmw
Copy link

Hi, I'm getting the following errors logged when running eval:

Connection error caused failure to post http://localhost:1984/runs  in LangSmith API. Please confirm your LANGCHAIN_ENDPOINT. ConnectionError(MaxRetryError("HTTPConnectionPool(host='localhost', port=1984): Max retries exceeded with url: /runs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2d0c00d90>: Failed to establish a new connection: [Errno 61] Connection refused'))"))
Connection error caused failure to patch http://localhost:1984/runs/8703dda5-af15-4f7c-adeb-9636a07f847b  in LangSmith API. Please confirm your LANGCHAIN_ENDPOINT. ConnectionError(MaxRetryError("HTTPConnectionPool(host='localhost', port=1984): Max retries exceeded with url: /runs/8703dda5-af15-4f7c-adeb-9636a07f847b (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2d0bdd640>: Failed to establish a new connection: [Errno 61] Connection refused'))"))

How can I disable LangSmith to prevent these?

@jjmachan
Copy link
Member

jjmachan commented Nov 1, 2023

unfortunatly there is no fix as of now and it is an annoying set of error messages. We will change that shortly

for now, you can disable the logs if you want

import logging
logging.getLogger('langchain.callbacks.tracers.langchain').setLevel(logging.WARNING)
logging.getLogger('urllib3.connectionpool').setLevel(logging.ERROR)

will put a long term solution in the mean time

@austinmw
Copy link
Author

austinmw commented Nov 6, 2023

Thanks a lot! 🙏🏻

@jjmachan jjmachan self-assigned this Nov 29, 2023
@jjmachan jjmachan added this to the v0.1.0 milestone Nov 29, 2023
@ranjanritesh89
Copy link

I also faced the same issue and using the given suggestion to disable the log for now. Thanks @jjmachan

@jjmachan
Copy link
Member

jjmachan commented Jan 3, 2024

applogies for this annoyance @ranjanritesh89 but we will also have a permanent fix with #394 too

@jjmachan jjmachan removed this from the v0.1.0 milestone May 1, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jun 1, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants