Skip to content
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

TypeError: Logger.exception() missing 1 required positional argument: 'msg' #1440

Closed
sentry-io bot opened this issue Oct 25, 2024 · 0 comments · Fixed by #1441 or #1444
Closed

TypeError: Logger.exception() missing 1 required positional argument: 'msg' #1440

sentry-io bot opened this issue Oct 25, 2024 · 0 comments · Fixed by #1441 or #1444
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 25, 2024

Sentry Issue: ROBOTOFF-238

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  File "requests/models.py", line 974, in json
    return complexjson.loads(self.text, **kwargs)
  File "__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  File "robotoff/metrics.py", line 123, in save_facet_metrics
    count = get_product_count(server_type, country_tag)
  File "robotoff/metrics.py", line 111, in get_product_count
    ).json()

TypeError: Logger.exception() missing 1 required positional argument: 'msg'
  File "robotoff/metrics.py", line 125, in save_facet_metrics
    logger.exception()

Job "<Job (id=e0bbc75a56974b399074243ab7dfb00c name=save_facet_metrics)>" raised an exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant