proxy re-authentication required error in telegram bot - laravel

I use webhook to get updates but now the bot does not get them from telegram servers. I'm using laravel 5.8. I checked webhook with getWebhookInfo and it returned
{"ok":true,"result"{"url":"https://example.com/bot_commands","has_custom_certificate":false,"pending_update_count":15,"last_error_date":1569065002,"last_error_message":"Wrong response from the webhook: 419 proxy reauthentication required","max_connections":40}}
How can I solve this error?. help is appreciated

Related

Laravel webhook client error 405 on whatsapp webhook url

I tried use laravel for webhook in whatsapp cloud but it show this error
Facebook error
and in the ngrok show this error
Ngrok error
I use https://github.com/spatie/laravel-webhook-client for the webhook
You need to return just the hub_challenge.
This worked for me return $req['hub_challenge'];
Fundamentally, Whatsapp webhook servers won't accept links which are exposed by Ngrok as a Callback url.
Because these kind of urls have been identified as malicious and/or abusive.
You need to go with your script on a server and use as the webhook a valid domain with certified ssl like
https://example.com/webhook
https://listener.example.com/webhook

Laravel Slack Notification response

I use the slack notification system from laravel to send messages in a channel.
I would like to access the response of the request to get the timestamp of the message posted to store it and modify the message later.
How could I get this response ?
Thanks !
Actually, I understood that the Slack system in Laravel using the slack webhoock, we cannot get anything in the response.
To get something, we should use the chat.postMessage method instead with a slack token.
There is a package on Github which permit that :
https://github.com/beyondcode/slack-notification-channel

Laravel webhook always returning '401 unauthorized' errors in production environment when receiving events from Stripe

I am setting up a webhook in a Laravel project to receive events from stripe. When I configured stripe to send the webhook events to my local deployment of the website, everything worked fine. The webhook successfully handled all the sent events.
However, in the production environment, after setting up the webhook url in stripe, the url returns a 401 Unauthorized error.
After some testing, it looked like stripe always gets a 401 Unauthorized error no matter the url, even when trying a non-existing one.
I am not using any authentication mechanism for this route, so no auth:api middleware.

gocardless webhook 419 Authentication Timeout error

I'm trying to integrate gocardless webhook in my website. I'm developing my site in laravel 5.5. Right now i'm following their instrution. But getting an error 419 Authentication Timeout. I did exactly as followed from their documentation. https://developer.gocardless.com/getting-started/api/staying-up-to-date-with-webhooks/
I created a POST route in my web.php file
Route::post('/test', 'GocardlessWebhookController#remote');
Then i put my secret token in my env file. In the controller i copy paste the same code from that site. Then i trigger the webhook from sandbox test environment.
Can anyone help me out?

Slack API requests to an endpoint which requires SSO

I want to create a Slack bot which will monitor incoming messages of channel, and respond to those messages based on the content using Events and Web API.
In Events API, the verification URL which I am currently using requires Shibboleth login i.e I need to put in username and password if I want to access that URL through browser.
How do I have Slack send its request to that URL? Currently Slack gets HTTP 500 error from the server, and also my server doesn't get any hit.
After talking to Slack help chat, I was told that Slack can't do auth. I was suggested to use proxy of some kind, but I ended up removing the Shibboleth from my server. Slack does sign every request it sends, so to have server respond to attackers, verify each request is from Slack before responding.

Resources