Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

980
Views
Error: PollingBlockTracker: se encontró un error al intentar actualizar el bloque más reciente: indefinido

Estoy tratando de desarrollar DApp en blockchain de polígonos. Básicamente, estoy acuñando NFT, pero después de algunas mentas aparece este error. Incluso sucede cuando no acuño NFT. Aquí está mi código.

 const Web3 = require("web3") const fs = require("fs") var HDWalletProvider = require("@truffle/hdwallet-provider"); var provider = new HDWalletProvider(SECRET_PHRASE, "https://rpc-mumbai.maticvigil.com") const web3 = new Web3(provider) const constractJSON = JSON.parse(fs.readFileSync(`${process.cwd()}/contracts/Collection.json`)) const abi = constractJSON["abi"] const byteCode = constractJSON["byteCode"]["object"] const mintNFT = async (contractAddress,tokenURI,to) => { const contract = await new web3.eth.Contract(abi, contractAddress) const result = await contract.methods.claimItem(tokenURI,to).send({from: WALLET_ADDRESS,gasLimit:6000000},) } module.exports = mintNFT

Aquí está el error completo.

 mint_service_1 | /usr/src/app/node_modules/safe-event-emitter/index.js:74 mint_service_1 | throw err mint_service_1 | ^ mint_service_1 | mint_service_1 | Error: PollingBlockTracker - encountered an error while attempting to update latest block: mint_service_1 | undefined mint_service_1 | at PollingBlockTracker._performSync (/usr/src/app/node_modules/eth-block-tracker/src/polling.js:51:24) mint_service_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5) mint_service_1 | Emitted 'error' event on Web3ProviderEngine instance at: mint_service_1 | at safeApply (/usr/src/app/node_modules/safe-event-emitter/index.js:70:5) mint_service_1 | at PollingBlockTracker.SafeEventEmitter.emit (/usr/src/app/node_modules/safe-event-emitter/index.js:56:5) mint_service_1 | at PollingBlockTracker._performSync (/usr/src/app/node_modules/eth-block-tracker/src/polling.js:53:16) mint_service_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Tengo el mismo problema. Puede ver el registro de errores a continuación

 const newErr = new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${err.stack}`) ^ Error: PollingBlockTracker - encountered an error while attempting to update latest block: undefined at PollingBlockTracker._performSync (/Users/buuthongtran/Downloads/FlightSurety/node_modules/eth-block-tracker/src/polling.js:51:24) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm ERR! Test failed. See above for more details.

Descubrí que olvidé iniciar Ganache antes de ejecutar la prueba de trufa, así que intenté iniciar Ganache e ingresé el mnemotécnico y el puerto correctos. El problema desapareció después de eso.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!