Strange problems with bot on Heroku - heroku

my bot stationes on heroku behave strangely, since seems to work perfectly in private, but in group only works with new users and stopped working with me and other collaborators who used it often.
I ran a logs and got these errors. Anyone can help? Thank you!
raise ApiTelegramException(method_name, result, result_json)
2020-11-13T20:40:42.207588+00:00 app[worker.1]:
telebot.apihelper.ApiTelegramException: A request to the Telegram API
was unsuccessful. Error code: 400 Description: Bad Request: have no
rights to send a message 2020-11-13T20:40:42.207589+00:00
app[worker.1]: " 2020-11-13T20:40:42.207869+00:00 app[worker.1]:
2020-11-13 20:40:42,207 (init.py:455 MainThread) ERROR - TeleBot:
"A request to the Telegram API was unsuccessful. Error code: 400
Description: Bad Request: have no rights to send a message"
raise ApiTelegramException(method_name, result, result_json)
2020-11-14T18:35:25.247259+00:00 app[worker.1]:
telebot.apihelper.ApiTelegramException: A request to the Telegram API
was unsuccessful. Error code: 400 Description: Bad Request:
CHAT_WRITE_FORBIDDEN 2020-11-14T18:35:25.247268+00:00 app[worker.1]: "
2020-11-14T18:35:25.247577+00:00 app[worker.1]: 2020-11-14
18:35:25,247 (init.py:455 MainThread) ERROR - TeleBot: "A request
to the Telegram API was unsuccessful. Error code: 400 Description: Bad
Request: CHAT_WRITE_FORBIDDEN"

Does the bot have Administrator rights in your group?
Seems like the bot is simply not allowed to send messages.

Related

com.google.apps.framework.request.BadRequestException:

Unable to stop Telegram integration.
Returns the following error:
com.google.apps.framework.request.BadRequestException: {"ok":false,"error_code":401,"description":"Unauthorized"}
error 401

Certificate Verification Error 1123 discord.py

I have tried to make a simple discord but but i am getting this error
ClientConnectorCertificateError(aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True[SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certific
Heres my code
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
#bot.command()
async def ping(ctx):
await ctx.send('pong')
bot.run('token')
token is my discord token
I have tried to upgrade certifi and discord.py
and searched stack overflow and the issues page in discord.pys github repo
Plz help
Thanks
Try to use discord.Client instead of commands.bot. I got this error too and that was the only solution that worked fine.

Office 365 gives bad sequence error on laravel

I am trying to user office 365 in my laravel site but for some reason, it does not work and I see the following error in my laravel.log:
[2018-12-04 20:50:59] production.ERROR: Expected response code 354 but got
code "503", with message "503 5.5.1 Bad sequence of commands
" {"exception":"[object] (Swift_TransportException(code: 503): Expected
response code 354 but got code \"503\", with message \"503 5.5.1 Bad
sequence of
commands \" at
/home/forge/owlcrest.co.za/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Tra
nsport/AbstractSmtpTransport.php:457)
[stacktrace]
I am hosting the website with forge.
and all the smtp details are in the .env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=email#odestdf.com.za
MAIL_PASSWORD=fakepasword
MAIL_ENCRYPTION=STARTTLS
I even tried changing the encryption to "tls" but I still see the same error.
Has anyone experienced this before?
EDITED:
Everything was working, but suddenly I see the following error when I see try to send an email:
Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SubmissionQuotaE$
" {"exception":"[object] (Swift_TransportException(code: 554): Expected response code 250 but got code \"554\", with message \"554 5.2.0 STOREDRV.Submission.$
\" at /home/forge/owlcrest.co.za/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:457)
Now I am completely confused.
Change the value of MAIL_ENCRYPTION to tls instead of using STARTTLS.
Please also make sure the MAIL_FROM_ADDRESS to your Office365 email address.

How to sign a Firefox WebExtensions?

I tried to sign my extension follow this guide:
My command:
web-ext sign --api-key ##### --api-secret #####
But I'm got an error:
sign: Error: Received bad response from the server while requesting
https://addons.mozilla.org/api/v3/addons/myextension%40example.org/versions/1.0.15/
status: 401 response: {"detail":"JWT iat (issued at time) is invalid.
Make sure your system clock is synchronized with something like
TLSdate."}
My UTC time is +7
Please help me to fix this. Tks

How to read grpc command line tool error messages from the responses?

I am using the grpc command line tool to test response for my grpc request. This is the official link to the grpc command line tool: https://github.com/grpc/grpc/blob/master/doc/command_line_tool.md (The usage guide is not updated. Kindly read ~/workspace/src/github.com/grpc/bins/opt/grpc_cli help)
I am running the command from the location where my protocol file resides. I am sending a request like this, (FYI: I am also sending the metadata. Irrespective of inclusion of the metadata or not I am getting the same error message) :
$ ~/my_workspace/src/github.com/grpc/bins/opt/grpc_cli call 0.0.0.0:50051 \
MyGrpcMethod <name_of_my_proto_file.proto> "abc : '12-34-56-78', xyz: '1234'" \
--metadata "auth:<auth_token>:space:xxx:org:xxx" --enable_ssl=false
In the response I am getting it says that there are some errors however, it does not show what the errors are. Here is the response I got from my client request:
connecting to 0.0.0.0:50051
Failed to read response.
Rpc failed with status code 12 error message unknown service my_agent.MyServiceAPI
Right now, I am not able to figure out from the documentation or otherwise on how to read the response. Did anyone face an issue like this?

Resources