继续获取TimeoutOverflowWarning数字不适合32位带符号整数超时时间设置为1

如何解决继续获取TimeoutOverflowWarning数字不适合32位带符号整数超时时间设置为1

我正在使用Snoostorm生成我的reddit收件箱流。我有两个Snoowrap请求者。两者共享相同的clientId,clientSecret,用户名和密码。我不确定双重请求者是否会使程序感到困惑,但是过了一会儿我会收到TimeoutOverflowWarning。

// Configuration File for Snoowrap

// Requiring Snoowrap
const Snoowrap = require('snoowrap');
       

// Snoowrap Init
const snoowrap = new Snoowrap({
    userAgent: process.env.USER_AGENT,clientId: process.env.CLIENT_ID,clientSecret: process.env.CLIENT_SECRET,username: process.env.REDDIT_USER,password: process.env.REDDIT_PASS
});

// Snoowrap Config
snoowrap.config({
    requestDelay: 20000,warnings: true,continueAfterRatelimitError: false,retryErrorCodes: [502,504,522],maxRetryAttempts: 3,debug: true
})

module.exports = {
    snoowrap: snoowrap,Snoowrap:Snoowrap
}



// Requester file

const snoowrap = require('../config/snoo-config').snoowrap
const Snoowrap = require('../config/snoo-config').Snoowrap
const Snoostorm = require('snoostorm')
const colors = require('colors')

// Need a second client to make requests within the snoostorm,since snoostorm is using the main client to make all the stream requests.
const client = new Snoowrap({
    userAgent: 'process.env.USER_AGENT',password: process.env.REDDIT_PASS
})

client.config({
    requestDelay: 20000,debug: true
})


const follow_ApproveMeThread = function (masterSubName,secondarySubName) {

const inbox = new Snoostorm.InboxStream(client,{
    limit: 5
})

// Get the last 30 comments and a stream of the latest incoming.
inbox.on('item',function (comment) {

    if (comment.subreddit_name_prefixed === `r/${masterSubName}`) {
        author = comment.author.name
        console.log('Adding '.blue + 'u/'.green + author.green + ` as contributor to ${secondarySubName}`.blue)

        snoowrap.getSubreddit(secondarySubName).addContributor({
            name: author
        })

    } else {
        console.log(('u/' + comment.author.name + ' attempted to request me from an unauthorized subreddit!').red)
    }

})

}

然后发生转储:

[debug]从发送到的get请求中收到了200个状态代码 https://oauth.reddit.com/message/inbox?raw_json=1&count=9999&limit=5。 ratelimit剩余:568

将u / stickRollBot添加为SecondarySub的贡献者

[debug]从发送到的post请求中收到了200个状态代码 https://oauth.reddit.com/r/SecondarySub/api/friend?raw_json=1。 ratelimit剩余:567

[debug]从发送到的get请求中收到了200个状态代码 https://oauth.reddit.com/message/inbox?raw_json=1&count=9999&limit=5。 ratelimit剩余:599

[debug]从发送到的get请求中收到了200个状态代码 https://oauth.reddit.com/message/inbox?raw_json=1&count=9999&limit=5。 ratelimit剩余:598

[debug]从发送到的get请求中收到了200个状态代码 https://oauth.reddit.com/message/inbox?raw_json=1&count=9999&limit=5

ratelimitRemaining:597 [debug]从 get个请求已发送至 https://oauth.reddit.com/message/inbox?raw_json=1&count=9999&limit=5。 ratelimit剩余:596

(节点:8728)TimeoutOverflow警告:2147489113不适合 32位有符号整数。超时时间设置为

  1. (节点:8728)TimeoutOverflowWarning:2147509113不适合32位带符号整数。超时时间设置为1。(节点:8728) TimeoutOverflowWarning:2147529109不适合32位带符号 整数。超时时间设置为1。

整数不断增长,并且应用程序不断发出状态代码为200的成功获取请求,并不断超过速率限制。

解决方法

我想我可能已经解决了,因为自那以后它还没有崩溃,但是我从Snoostorm.InboxStream中删除了limit:5。显然,我不喜欢我像列表一样对待它吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-