Skip to content

AttributeError: 'Session' object has no attribute 'block_filter' #59

Description

@dirmansebastian

Describe the bug
AttributeError: 'Session' object has no attribute 'block_filter'

To Reproduce
run ether_sql --settings='PersonalInfuraSettings' celery start -c2 -B -Q celery_filters -n worker1@%h, we get the error, but, it still push blocks in queque:

[2018-09-10 12:41:17,224][PID:8589][ERROR][ForkPoolWorker-3] Task ether_sql.tasks.filters.new_blocks[fb253629-be89-4c58-aee5-0c6ece03d65d] raised unexpected: AttributeError("'Session' object has no attribute 'block_filter'",)
Traceback (most recent call last):
  File "/home/ubuntu/ether_sql/envname/lib/python3.6/site-packages/celery/app/trace.py", line 375, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/ubuntu/ether_sql/envname/lib/python3.6/site-packages/celery/app/trace.py", line 632, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/ubuntu/ether_sql/ether_sql/tasks/filters.py", line 22, in new_blocks
    block_hashes = current_session.block_filter.get_new_entries()
AttributeError: 'Session' object has no attribute 'block_filter'
AttributeError: 'Session' object has no attribute 'block_filter'
[2018-09-10 12:41:51,134][PID:8588][INFO][ForkPoolWorker-2] Task ether_sql.tasks.filters.push_blocks_in_queue[7c3b666a-6363-4a50-9a66-64978708e897] succeeded in 33.95213927699933s: None
[2018-09-10 12:41:17,224][PID:8589][ERROR][ForkPoolWorker-3] Task ether_sql.tasks.filters.new_blocks[fb253629-be89-4c58-aee5-0c6ece03d65d] raised unexpected: AttributeError("'Session' object has no attribute 'block_filter'",)

it's there any problem if missing attribute block_filter?

Desktop (please complete the following information):

  • OS: ubuntu 16.04
  • Node Infura

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions