We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Weave Version: 0.51.28 Python version: 3.12.8
In my application I want to enable tracing via feature flag:
if is_tracing_enabled: weave.init(project_name) else: weave.init(project_name, settings={'disabled':True}) # weave.init(project_name, settings=UserSettings(disabled=True))
This results in the following error when calling a function decorated with weave.op:
weave.op
ERROR:weave.trace.concurrent.futures:Task failed: HTTPError: 400 Client Error: Bad Request for url: https://trace.wandb.ai/files/create Traceback (most recent call last): File "/usr/src/.venv/lib/python3.12/site-packages/weave/trace/concurrent/futures.py", line 244, in _execute_directly res = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/weave/trace/concurrent/futures.py", line 201, in wrapped_f return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 336, in wrapped_f return copy(f, *args, **kw) ^^^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 475, in __call__ do = self.iter(retry_state=retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 376, in iter result = action(retry_state) ^^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda> self._add_action_func(lambda rs: rs.outcome.result()) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/usr/src/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 478, in __call__ result = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/src/.venv/lib/python3.12/site-packages/weave/trace_server_bindings/remote_http_trace_server.py", line 481, in file_create r.raise_for_status() File "/usr/src/.venv/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trace.wandb.ai/files/create
This error also occurs when WEAVE_DISABLED is set.
WEAVE_DISABLED
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Weave Version: 0.51.28
Python version: 3.12.8
In my application I want to enable tracing via feature flag:
This results in the following error when calling a function decorated with
weave.op
:This error also occurs when
WEAVE_DISABLED
is set.The text was updated successfully, but these errors were encountered: