Comments (5)
Heres a snip of the log;
\u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (429) Too Many Requests.: {\n \"global\": false, \n \"message\": \"You are being rate limited.\", \n \"retry_after\": 8605\n}\n","Data":{}} {"DataTime":"2020-10-09 21:14:32Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Warning","LogLevel":"Info","Message":"{\n \"global\": false, \n \"message\": \"You are being rate limited.\", \n \"retry_after\": 8605\n}\n","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:41Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [2] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (429) Too Many Requests.: {\n \"global\": false, \n \"message\": \"You are being rate limited.\", \n \"retry_after\": 8513\n}\n","Data":{}} {"DataTime":"2020-10-09 21:14:42Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Warning","LogLevel":"Info","Message":"{\n \"global\": false, \n \"message\": \"You are being rate limited.\", \n \"retry_after\": 8513\n}\n","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Normal","LogLevel":"Debug","Message":"Attempted [3] of [3]","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordBackend","Method":"LoadUsers","Severity":"Normal","LogLevel":"Debug","Message":"[] users returned","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"Bot","Method":"Start","Severity":"Error","LogLevel":"Info","Message":"Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named \u0027ForEach\u0027.","Data":{"CommandName":null,"Message":"Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named \u0027ForEach\u0027.","TargetObject":"ForEach","Position":"At C:\\Program Files\\WindowsPowerShell\\Modules\\PoshBot\\0.12.0\\PoshBot.psm1:6831 char:9\r\n+ $allUsers.ForEach({\r\n+ ~~~~~~~~~~~~~~~~~~~","CategoryInfo":"InvalidOperation: (ForEach:String) [], RuntimeException","FullyQualifiedErrorId":"MethodNotFound"}} {"DataTime":"2020-10-09 21:14:51Z","Class":"Bot","Method":"Disconnect","Severity":"Normal","LogLevel":"Verbose","Message":"Disconnecting from backend chat network","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordConnection","Method":"Disconnect","Severity":"Normal","LogLevel":"Info","Message":"Closing websocket","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordConnection","Method":"Disconnect","Severity":"Normal","LogLevel":"Info","Message":"Stopping receive job [1]","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"Bot","Method":"Disconnect","Severity":"Normal","LogLevel":"Verbose","Message":"Disconnecting from backend chat network","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordConnection","Method":"Disconnect","Severity":"Normal","LogLevel":"Info","Message":"Closing websocket","Data":{}} {"DataTime":"2020-10-09 21:14:51Z","Class":"DiscordConnection","Method":"Disconnect","Severity":"Normal","LogLevel":"Info","Message":"Stopping receive job [1]","Data":{}}
from poshbot.
@Kickbut101 Thanks for reporting this. You mentioned Discord changed things in the API. Can you point me to what changed?
from poshbot.
@Kickbut101 Thanks for reporting this. You mentioned Discord changed things in the API. Can you point me to what changed?
I assume it's something in here;
https://discord.com/developers/docs/change-log#api-and-gateway-v8
Maybe the gateway? I'm just spitballing
EDIT I thought maybe I was just being stupid or had broken something else. So I just built a fresh .14 version today, made a new config file, and sent it off, and got an almost identical error. I'll list the end of the log file here;
{"DataTime":"2020-10-11 17:20:29Z","Class":"Scheduler","Method":"LoadState","Severity":"Normal","LogLevel":"Verbose","Message":"Loading scheduler state from storage","Data":{}} {"DataTime":"2020-10-11 17:20:29Z","Class":"StorageProvider","Method":"GetConfig","Severity":"Warning","LogLevel":"Info","Message":"Configuration file [C:\\Users\\Administrator\\.poshbot\\schedules.psd1] not found","Data":{}} {"DataTime":"2020-10-11 17:20:33Z","Class":"Bot","Method":"Start","Severity":"Normal","LogLevel":"Info","Message":"Start your engines","Data":{}} {"DataTime":"2020-10-11 17:20:33Z","Class":"Bot","Method":"Start","Severity":"Normal","LogLevel":"Info","Message":"Setting global FormatEnumerationLimit to [-1]","Data":{}} {"DataTime":"2020-10-11 17:20:33Z","Class":"Bot","Method":"Connect","Severity":"Normal","LogLevel":"Verbose","Message":"Connecting to backend chat network","Data":{}} {"DataTime":"2020-10-11 17:20:33Z","Class":"DiscordBackend","Method":"Connect","Severity":"Normal","LogLevel":"Info","Message":"Connecting to backend","Data":{}} {"DataTime":"2020-10-11 17:20:33Z","Class":"DiscordBackend","Method":"Connect","Severity":"Normal","LogLevel":"Info","Message":"Listening for the following message types. All others will be ignored","Data":["CHANNEL_CREATE","CHANNEL_DELETE","CHANNEL_UPDATE","MESSAGE_CREATE","MESSAGE_DELETE","MESSAGE_UPDATE","MESSAGE_REACTION_ADD","MESSAGE_REACTION_REMOVE","PRESENSE_UPDATE"]} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordConnection","Method":"StartReceiveJob","Severity":"Normal","LogLevel":"Info","Message":"Started websocket receive job [1","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordBackend","Method":"GetBotIdentity","Severity":"Normal","LogLevel":"Verbose","Message":"Bot identity is [630302282939891731]","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordBackend","Method":"_SendDiscordMsg","Severity":"Error","LogLevel":"Info","Message":"Unable to query URI \u0027https://discordapp.com/api/guilds/383060918625370112/members?limit=1000\u0027: The remote server returned an error: (403) Forbidden.: {\"message\": \"Missing Access\", \"code\": 50001}","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"Bot","Method":"Start","Severity":"Error","LogLevel":"Info","Message":"Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named \u0027ForEach\u0027.","Data":{"CommandName":null,"Message":"Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named \u0027ForEach\u0027.","TargetObject":"ForEach","Position":"At C:\\Program Files\\WindowsPowerShell\\Modules\\PoshBot\\0.14.0\\PoshBot.psm1:6886 char:9\r\n+ $allUsers.ForEach({\r\n+ ~~~~~~~~~~~~~~~~~~~","CategoryInfo":"InvalidOperation: (ForEach:String) [], RuntimeException","FullyQualifiedErrorId":"MethodNotFound"}} {"DataTime":"2020-10-11 17:20:34Z","Class":"Bot","Method":"Disconnect","Severity":"Normal","LogLevel":"Verbose","Message":"Disconnecting from backend chat network","Data":{}} {"DataTime":"2020-10-11 17:20:34Z","Class":"DiscordConnection","Method":"Disconnect","Severity":"Normal","LogLevel":"Info","Message":"Closing websocket","Data":{}}
from poshbot.
I'm sorry to have wasted your time. I think I found it. And maybe this is worth posting a PSA now for discord. But it seems in the last week or so (I had my last "successful" commands on 10-4-20) Discord has changed some access for bots.
They now require you to check specific gateway permissions through the bot admin interface on their developer portal.
These were not checked by default, and upon checking them it seems to have allowed my bot to function again.
from poshbot.
That's good to know @Kickbut101. Thanks. I'll do some testing on my end to repro and update the docs.
from poshbot.
Related Issues (20)
- FunctionApp creation not working as expected HOT 2
- How to define ChannelRules in Microsoft Teams channels? HOT 3
- Got Stuck with instructions for Microsoft Teams HOT 1
- Starting new discord bot instance gives method not found: no ForEach in PSCustomObject HOT 2
- Discord - cannot find user by discord handle with or without tag HOT 4
- Threads: Is it possible to execute command in thread and have results post back to it? HOT 1
- Slack Threads: Is it possible to execute command in thread and have results post back to it? HOT 2
- "CallingUserInfo":null for Teams Backend HOT 1
- IRC - PoshBot Backend
- PoshBot Powershell Gallery \r\n+ HOT 2
- Writing emojis to Discord backend converts to ascii HOT 1
- Scheduled Task not respecting Daylight Savings (DST) HOT 2
- Discord User-Agent required
- Discord Backend errors when connecting to server with "Stage" channel
- Poshbot - Teams Implementation output wraps at around 52 chars when using New-PoshbotCardResponse -text HOT 3
- Teams Backend stopped working HOT 5
- PoshBot not receiving webhook information in Teams console HOT 8
- Discord Slash Commands Support HOT 1
- Cannot connect to Discord backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poshbot.