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

BadFunctionCallOutput: Could not decode contract function call getNumFulfillments return data b'' for output_types ['uint256'] #1047

Closed
mbeacom opened this issue May 1, 2018 · 0 comments
Labels
backend This needs backend expertise.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented May 1, 2018

View details in Rollbar: https://rollbar.com/gitcoin/gitcoin/items/421/

Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/views/decorators/http.py", line 40, in inner
    return func(request, *args, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/ratelimit/decorators.py", line 30, in _wrapped
    return fn(*args, **kw)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/views.py", line 861, in sync_web3
    bounty_id = get_bounty_id(issue_url, network)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/utils.py", line 283, in get_bounty_id
    bounty_id = get_bounty_id_from_web3(issue_url, network, highest_known_bounty_id, direction='down')
  File "/home/ubuntu/gitcoin/coin/app/dashboard/utils.py", line 322, in get_bounty_id_from_web3
    bounty = get_bounty(bounty_enum, network)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/utils.py", line 201, in get_bounty
    num_fulfillments = int(standard_bounties.functions.getNumFulfillments(bounty_enum).call())
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/web3/contract.py", line 852, in call
    **self.kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/web3/contract.py", line 1065, in call_contract_function
    raise BadFunctionCallOutput(msg) from e
BadFunctionCallOutput: Could not decode contract function call getNumFulfillments return data b'' for output_types ['uint256']Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/web3/contract.py", line 1043, in call_contract_function
    output_data = decode_abi(output_types, return_data)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/abi.py", line 63, in decode_abi
    return decoder(stream)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/decoding.py", line 99, in __call__
    return self.decode(stream)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_utils/functional.py", line 22, in inner
    return callback(fn(*args, **kwargs))
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/decoding.py", line 137, in decode
    yield decoder(stream)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/decoding.py", line 99, in __call__
    return self.decode(stream)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/decoding.py", line 162, in decode
    raw_data = cls.read_data_from_stream(stream)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/eth_abi/decoding.py", line 244, in read_data_from_stream
    len(data),
InsufficientDataBytes: Tried to read 32 bytes.  Only got 0 bytes
@mbeacom mbeacom added backend This needs backend expertise. rollbar labels May 1, 2018
@mbeacom mbeacom closed this as completed May 6, 2018
@mbeacom mbeacom reopened this May 9, 2018
@mbeacom mbeacom closed this as completed May 14, 2018
@mbeacom mbeacom reopened this May 16, 2018
@mbeacom mbeacom closed this as completed May 27, 2018
@mbeacom mbeacom reopened this May 27, 2018
@mbeacom mbeacom closed this as completed Jun 4, 2018
@mbeacom mbeacom reopened this Jun 12, 2018
@mbeacom mbeacom closed this as completed Jun 20, 2018
@mbeacom mbeacom reopened this Jun 21, 2018
@mbeacom mbeacom closed this as completed Jun 26, 2018
@mbeacom mbeacom reopened this Jun 28, 2018
@mbeacom mbeacom closed this as completed Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise.
Projects
None yet
Development

No branches or pull requests

1 participant