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: an integer is required (got type str) #167

Open
rollbar bot opened this issue Jul 28, 2020 · 0 comments
Open

TypeError: an integer is required (got type str) #167

rollbar bot opened this issue Jul 28, 2020 · 0 comments

Comments

@rollbar
Copy link

rollbar bot commented Jul 28, 2020

View details in Rollbar: https://rollbar.com/bmordue/nb/items/32/

Traceback (most recent call last):
  File "src/app.py", line 81, in <module>
    schedule.run_pending()
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/schedule/__init__.py", line 563, in run_pending
    default_scheduler.run_pending()
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/schedule/__init__.py", line 94, in run_pending
    self._run_job(job)
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/schedule/__init__.py", line 147, in _run_job
    ret = job.run()
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/schedule/__init__.py", line 466, in run
    ret = self.job_func()
  File "src/app.py", line 53, in periodic_add_comment_counts
    add_comment_counts()
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/datadog/dogstatsd/context.py", line 53, in wrapped
    def wrapped(*args, **kwargs):
  File "/home/ben/Projects/nb/src/tasks/add_comment_counts.py", line 24, in add_comment_counts
    count = nb_client.get_comment_count(url)
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/datadog/dogstatsd/context.py", line 53, in wrapped
    def wrapped(*args, **kwargs):
  File "/home/ben/Projects/nb/src/connectors/NewsblurConnector.py", line 85, in get_comment_count
    resp = self.request_with_backoff(req)
  File "/home/ben/Projects/nb/.env/lib/python3.7/site-packages/datadog/dogstatsd/context.py", line 53, in wrapped
    def wrapped(*args, **kwargs):
  File "/home/ben/Projects/nb/src/connectors/NewsblurConnector.py", line 142, in request_with_backoff
    sleep(self.config.get('BACKOFF_START'))
TypeError: an integer is required (got type str)
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

0 participants