oceanprotocol / uploader.js

OCEAN Decentralized Backend Storage js Library
Apache License 2.0
1 stars 0 forks source link

Gas issue on filecoin uploads #48

Closed jamiehewitt15 closed 1 year ago

jamiehewitt15 commented 1 year ago

Describe the bug

When we attempt to upload to the filecoin microservice, we are now getting this error:

Error uploading to micro-service: 
Error occurred while making the request: 
400 Client Error: Bad Request for url: http://dbs-filecoin.dbs.svc.cluster.local:3000/upload/?quoteId=935b025675c2455a92b920f1e2bbba43&nonce=1693909932&signature=0xd75baf2f4a6d049200872f100707a4c85b6f603218b4910dccb65cf8d8fa6218083cf9a25ba07df5d295e46af781537e60ae61509cbe8c857ad6e06058aa610d1c

Detailed message: 
"cannot estimate gas; transaction may fail or may require manual gas limit. (reason: 'execution reverted: insufficent Balance', method: 'estimateGas', transaction: {
  'from': '0x5F8396D1BfDa5259Ee89196F892E4401BF3B596d',
  'to': '0x0ff9092e55d9f6CCB0DD4C490754811bc0839866',
  'data': '0x33026bb600000000000000000000000021c561e551638401b937b03fe5a0a0652b99b7dd000000000000000000000000000000000000000000000000000000000000009c',
  'accessList': null
}, error: {
  'reason': 'processing response error',
  'code': 'SERVER_ERROR',
  'body': {
    'jsonrpc': '2.0',
    'id': 44,
    'error': {
      'code': 3,
      'data': '0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000013696e737566666963656e742042616c616e636500000000000000000000000000',
      'message': 'execution reverted: insufficent Balance'
    }
  },
  'requestBody': {
    'method': 'eth_estimateGas',
    'params': [{      'from': '0x5f8396d1bfda5259ee89196f892e4401bf3b596d',      'to': '0x0ff9092e55d9f6ccb0dd4c490754811bc0839866',      'data': '0x33026bb600000000000000000000000021c561e551638401b937b03fe5a0a0652b99b7dd000000000000000000000000000000000000000000000000000000000000009c'    }],
    'id': 44,
    'jsonrpc': '2.0'
  },
  'requestMethod': 'POST',
  'url': 'https://polygon-mumbai.infura.io/v3/8f68aef7e516418aa064cfcfbfe1ead5'
}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)"
jamiehewitt15 commented 1 year ago

Closing as this appears to be an issue on the filecoin microservice. Will reopen there.