volentixlabsinc / venue-server

The backend services for Venue, a community engagement platform for the Volentix community
https://venue.volentix.io
MIT License
6 stars 0 forks source link

ValueError: unsupported format character 'P' (0x50) at index 72 #262

Closed shawnlauzon closed 6 years ago

shawnlauzon commented 6 years ago

View details in Rollbar: https://rollbar.com/vlabs/Venue/items/54/

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 375, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 632, in __protected_call__
    return self.run(*args, **kwargs)
  File "/code/venue/tasks.py", line 269, in get_user_position
    fallback=fallback
  File "/code/venue/scrapers/bitcointalk.py", line 357, in get_user_position
    logger.info(message, log_opts)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1308, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1444, in _log
    self.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1454, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
    hdlr.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 865, in handle
    self.emit(record)
  File "/usr/local/lib/python3.6/site-packages/logdna/logdna.py", line 126, in emit
    msg = self.format(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 840, in format
    return fmt.format(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 577, in format
    record.message = record.getMessage()
  File "/usr/local/lib/python3.6/logging/__init__.py", line 338, in getMessage
    msg = msg % self.args
ValueError: unsupported format character 'P' (0x50) at index 72Traceback (most recent call last):
  File "/code/venue/scrapers/bitcointalk.py", line 342, in get_user_position
    position = scraper.get_user_position()
  File "/code/venue/scrapers/bitcointalk.py", line 113, in get_user_position
    raise ScraperError('Cannot get user position', self.error_info)
ScraperError: ('Cannot get user position', {'fallback': None, 'status_code': 200, 'response_text': 'Invalid request variable.'})