I keep getting this error and can't figure out why. I have 1.4 ETH and 110 LINK in my metamask account. I'm connected to the Kovan testnet. Any help would be much appreciated.

Error: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? The execution failed due to an exception. Reverted

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";

contract CheckingThisOut is ChainlinkClient {
    using Chainlink for Chainlink.Request;

    address[] private subaddress;

    address private oracle;
    bytes32 private jobId;
    uint256 private fee;

    constructor() {
        oracle = 0x56dd6586DB0D08c6Ce7B2f2805af28616E082455;
        jobId = "c128fbb0175442c8ba828040fdd1a25e";
        // 17 0s = 0.1 LINK
        // 18 0s = 1 LINK
        fee = 0.1 * 10 ** 18; // (Varies by network and job)

     * Create a Chainlink request to retrieve API response, find the target
     * data, then multiply by 1000000000000000000 (to remove decimal places from data).
    function requestSubscriptions() public returns (bytes32 requestId)
        Chainlink.Request memory request = buildChainlinkRequest(jobId, address(this), this.fulfill.selector);

        // Set the URL to perform the GET request on
        request.add("get", "http://1423-104-243-59-126.ngrok.io/");

        request.add("path", "result");

        // Sends the request
        return sendChainlinkRequestTo(oracle, request, fee);

    function fulfill(bytes32 _requestId, address[] memory _subaddress) public recordChainlinkFulfillment(_requestId)
        subaddress = _subaddress;

Wow i figured it out. I spent 5 hours on this and as soon as I posted the question, I watched the same tutorial video again (for the 10th time). I never sent LINK to the deployed contract address. I sent some LINK and it worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.