Renaissance Labs

Posted on May 05, 2022Read on Mirror.xyz

Web3开发之丛林荆棘

  1. Invalid Request. Requested data is older than 128 blocks.

    A:遇到该错误的原因是,请求的block号码太小太老了,进一步通常是因为目前的全节点已经没有没有该数据了,数据已经被打包到打包节点了。

  2. import cycle not allowed

    A:这个错误属于Go开发中的错误,意思是两个Go包相互引用了,通常因为模块的设计的不合理,出现了循环引用了;简单高效的解决方案是通过改变的包的引用来解决。

  3. Column does not implement gorm.ColumnType 错误以及解决方案:

    https://blog.csdn.net/lsjweiyi/article/details/123086211

  4. go: gitlab.******.me/w3/[email protected]: invalid version: git ls-remote -q origin in /Users/****/Workspace/go-source/pkg/mod/cache/vcs/be4a92c7377d68a0e283354fab6cb18e81caa2d70e4ed61d8833baa4ee844fda: exit status 128: git@gitlab.*****.me: Permission denied (publickey). fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    

Web3