Please tell the experts: Programs often run for a dozen hours and then quit.

Author: The Night Elves, Created: 2018-06-29 21:59:17, Updated: 2019-07-31 17:31:53

Inventor quantification shows an error, but does not print it as an error. How did this break?


More

The Night ElvesI suspect that other unprinted opt-outs may also be related to this, I'm a ZB exchange, loop calls var records = _C ((exchange.GetRecords, PERIOD_M1);

The Night ElvesOnly in the run state, it shows the error button, and the program exits. Please ask the normal transaction process, how long can it run, if it can not run a week.

The Night ElvesThe most important thing is that you don't make mistakes or you're done.

The Little DreamYou can post it here or on the QQ group @My Little Dream.

The Night ElvesBy the way, exchange.GetRecords doesn't have any parameters to control the number of K-strings?

The Night ElvesI didn't call the null-value property, I made judgments before using it. It's also currently speculated that the robot is separately scattered to a single machine and then running around looking at it. var records = _C (exchange.GetRecords, PERIOD_M1); if (!records) { Log (("get records error: records === null", "#ff0000"); return -1; I'm not sure.

The Little DreamIf the GetRecords interface is error tolerant and does not call the null property, it should not cause the bot to stop. The type assertion to []interface{} failed. This error is a data error returned by the exchange, the GO sub-layer asserts an exception. The error does not cause the bot to stop.

The Night ElvesI have a hunch that the GetRecords implementation of the FMZ platform may imply a bug that will cause the program to exit, and I have made a judgment about the result of this call, even if the error is also captured by the error, so that the program does not exit. I run a robot separately on a machine to try, and if there is an exit problem, I implement it myself.

The Night ElvesThe robots are expensive, I mean the money in the exchange is gone, and it's been in Buy.

The Little DreamIs the robot free of charge?

The Night ElvesThe server is normal, the JS is used. However, last night there was not enough balance to keep the single interface, the IP was blocked by ZB, and it has not been unlocked for half a day.

The Little DreamThis query is not coming, is it the bot that stopped itself? Nothing is showing up in the bot log. Is the other host correct? Is it using Python?

The Night ElvesWithout reporting any errors, log out straight away. All logs printed are fine. Can you systematically find out the reason for the log out?

The Little DreamYou can post a screenshot of an error report, or share a screenshot in a group.

The Night ElvesI probably know why, ZB stipulates that this interface cannot request more than one request per second, I run several processes at the same time, and sometimes the loop crashes into the same second, and it goes wrong.

The Night ElvesThe weird thing is, I'm coming out here very often, and it's probably caused by exchange.GetRecords, but other functions like exchange.GetTickers don't generate this error, right?

The Little DreamThis is a list of all the different ways Dn-filebox.qbox.me is credited in the database. This error may be due to an error in the data returned by the exchange, or it may be due to a change in the data structure returned by the exchange.

The Little DreamThis is the problem of data returns at the bottom of the exchange, and I'm testing the ZB exchange here. The robot can run for a long time, the longest running for almost two years, without stopping in the middle.

The Night ElvesI'm sorry, but I'm not sure what's going on.