Chainlink not updating variables in Ethereum Smart Contract

Ethereum Asked by phivms on November 25, 2020

I am having a strange thing occuring on kovan network. I am running a smart contract calling my chainlink oracle to request some information. My chainlink oracle responds correctly with the expected information. The smart contract calls the fulfill function but it does not set the value heartRateMinutes. Any calls to it returns a 0. The expected value should be 67. Value is set to public so it should be seen. They also have the same size of uint256. The value is a whole integer number.

enter image description here

It is weird because the chainlink run job shows all green and no errors.

One Answer

When an oracle isn't responding, there are a few things for you to check out. 95% of the time it's on the smart contract side.

On the smart contract side:

  1. Is the oracle address and jobId correct? Certain jobIds return certain types, so you need to know the the jobId is returning the same type that your function is looking for.
  2. Is your smart contract funded with LINK?

On the node operator side:

  1. Is the oracle address funded with ETH? Smart contract engineers can see this as well, by looking at your oracle address's balance.
  2. Does the node have setFulfillmentPermission=true?
  3. Does the node have any whitelisted/blacklisted contracts? This one is harder to see, you'd have to check with the node operator.

Hopefully these will be able help out. In this specific case it looks like it's something on the node side.

Correct answer by Patrick Collins on November 25, 2020

Add your own answers!

Related Questions

How to reliably send transaction via web3j while connection is poor?

1  Asked on November 10, 2021 by roman-chumachenko


How to check validity of an address in solidity?

2  Asked on November 7, 2021 by manidos


Ethereum classic wallet is zero

1  Asked on November 7, 2021 by rhiannon-oaks


Balance may be outdated, Metamask

4  Asked on November 7, 2021


How does array.length– work?

1  Asked on November 7, 2021 by alejandro-veintimilla


Why are some transactions lost during mining?

1  Asked on November 4, 2021 by j-jack


All transaction pending a lot of time?

1  Asked on November 4, 2021 by timmy-chien


Taking a long time. Transaction pending

2  Asked on November 4, 2021 by n-g


Smart contract multiple functions call

2  Asked on November 4, 2021 by anarz


How to use erc20 token in integer, not decimal

1  Asked on August 26, 2021 by gnxvw


Why is my geth node stuck on “Looking for peers”?

0  Asked on August 26, 2021 by peter-lawson


WEB3.JS problem

1  Asked on August 26, 2021


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir