用web3部署一个简单的获取状态变量的值的合约。获取状态变量值报错

index.js:298 Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.at ABICoder.push../node_modules/web3-eth-abi/lib/index.js.ABICoder.decodeParametersWith (index.js:298)at ABICoder.push../node_modules/web3-eth-abi/lib/index.js.ABICoder.decodeParameters (index.js:285)at Contract.push../node_modules/web3-eth-contract/lib/index.js.Contract._decodeMethodReturn (index.js:470)at Method.outputFormatter (index.js:760)at Method.push../node_modules/web3-core-method/lib/index.js.Method.formatOutput (index.js:147)at sendTxCallback (index.js:523)at cb (util.js:689)at Item.push../node_modules/process/browser.js.Item.run (browser.js:153)at drainQueue (browser.js:123)

主网没部署合约,所以调用合约出错了,相当于查找不到这个合约,注意自己合约部署网络

报错Error: Returned values aren‘t valid, did it run Out of Gas?相关推荐

  1. Maven报错 Error running ‘ [install]‘:No valid Maven installation found.maven不能用

    出现这种情况主要是导入别人的项目,或者是之前的项目,现在已经更改了maven的安装目录,报错如下: 配齐不多哔哔,解决方法如下,请君查阅:

  2. dev c++ 报错[Error] ld returned 1 exit status 的解决办法

    我是个C语言的初学者,在使用dev c++ 编译器时,遇到一个情况:程序是正确的,能够正常的编译和运行,但是运行一次之后再次运行之时就出现了 报错[Error] ld returned 1 exit ...

  3. DevC++ 报错[Error] Id returned 1 exit status

    DevC++ 报错[Error] Id returned 1 exit status 起因 学校机房的计算机总是二次编译总是报错 报错提示 [Error] Id returned 1 exit sta ...

  4. 故障分析 | 报错 ERROR 5270 -HY000-- object not in RECYCLE BIN 引发的几个思考

    作者:姚嵩 不知道是地球人还是外星人,知道的可以留言告诉小编- 本文来源:原创投稿 *爱可生开源社区出品,原创内容未经授权不得随意使用,转载请联系小编并注明来源. 现象: 通过show recycle ...

  5. mysql报错-ERROR 1206 (HY000)- The total number of locks exceeds the lock table size-的解决方法

    mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法 问题 ...

  6. docker报错Error response from daemon: Get https://registry-1.docker.io/v2/: x509

    docker报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has exp ...

  7. 使用mybatis-plus时候报错Error updating database.subject_parent_id‘ doesn‘t have a default value

    使用mybatis-plus时候报错Error updating database. Cause: java.sql.SQLException: Field 'subject_parent_id' d ...

  8. 搭建网站服务器时报错url,服务器网站总报错“ERROR the requested URL could not be retrieved”解决办法...

    服务器网站总报错"ERROR the requested URL could not be retrieved" ERROR The requested URL could not ...

  9. MySQL插入中文出现报错: ERROR 1366 (HY000): Incorrect string value: ‘\xD5\xC5\xC8\xFD‘的解决方案

    MySQL插入中文出现报错: ERROR 1366 (HY000): Incorrect string value: '\xD5\xC5\xC8\xFD'的解决方案 1 MySQL 5.5 版本 1. ...

最新文章

  1. 基于jQuery 2.0的源代码分析
  2. ajax中datatype是json,dataType:'json'vs data:$ .ajax中的JSON.stringify(obj)
  3. c# mvvm模式获取当前窗口_AWTK-MVVM 介绍
  4. Python折半查找(二分查找)
  5. grep命令_「Linux」- ps -ef |grep 命令
  6. Scalaz(47)- scalaz-stream: 深入了解-Source
  7. 如何给Arduino项目添加音乐播放功能
  8. python中的auto_ml自动机器学习框架学习实践
  9. java软件开发工程师的简历
  10. 小米路由器怎么设置无盘服务器,小米路由器怎么设置?
  11. DM6437的中断和事件
  12. 亚马逊后台数据分析-电商数据分析
  13. ARCore 使用 SceneForm 框架 —— 三维空间中,通过三个点绘制平面(Plane)
  14. SSL / TLS协议解析!SNI 识别
  15. 解决 ERROR: Could not find a version that satisfies the requirement 的一种思路
  16. 资本冷落政令明禁,电子烟如何冬去春回?
  17. 苹果手机上滑动会卡顿_苹果手机Safari浏览器下滑动卡顿的问题
  18. 产品经理基础——需求文档
  19. 联考素描头像怎么才能画到高分?联考新手必看!
  20. PHPOK 5.2.009 发布

热门文章

  1. node.js PM2部署项目
  2. 苏州信访OA项目配置搭建
  3. HR警告:应届生求职简历中的实习经历千万别水
  4. python加换行和去换行(去掉换行,end =““;加换行 ,‘/n‘)
  5. 程序员不修改Bug,我们该怎么办??
  6. 如何在Win10下,清空剪贴板
  7. 公司股权分配协议 (2)
  8. Python爬虫之网页采集器
  9. DateTimePicker 日期时间选择器 默认当前日期和时间
  10. 240次方在线计算机,0.05的240次方是多少