Code Monkey home page Code Monkey logo

Comments (6)

1nchaos avatar 1nchaos commented on July 30, 2024

能提供更完整的报错信息么,你所提供的信息只能看出来是json转换的时候出现了错误

from adata.

LeslieWuboy avatar LeslieWuboy commented on July 30, 2024

这个是输出的所有日志了,我尝试每两百个开启一次就不会出现这个报错。 不知道是不是获取分红的接口并没有做等待、重试的处理导致的。

from adata.

1nchaos avatar 1nchaos commented on July 30, 2024

嗯,数据接口是互联网的接口,存在部分无法获取报错的情况,代码中可以加入异常处理,如果发现接口有返回错误数据可以进行反馈。

from adata.

LeslieWuboy avatar LeslieWuboy commented on July 30, 2024

明白了,还有一个问题就是获取所有股票代码的函数,我看源码是通过读取csv来获取的,为什么我在两个服务器同时执行这个函数却有不同的条数。
如下图,左侧是新获取的条数,右侧是原条数,新获取的反而更少了
image

from adata.

1nchaos avatar 1nchaos commented on July 30, 2024

所有代码是缓存和最新数据取交集的,建议在非交易时间获取所有代码。最新的数据可能网络原因获取失败

from adata.

LeslieWuboy avatar LeslieWuboy commented on July 30, 2024

好的,感谢您的指导。

from adata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.