I know that the ping service was banned for any project.
Some project using webhooks that are unrelated to the use of ping services. As boosted project is always online, so I think there is no reason for using ping to let the project wake up with boosted project.
Yes, boosted project is always on, Glitch banned ping service for disallow user to ping unboosted project, but why the boosted project still banned this ping service? Not just ping service, any non browser request to the project endpoint are forbidden.
For me I using the project as webhook endpoint first telegram, when telegram trigger the end point, it say wrong response from the webhook 403 forbidden, so I think it still not working.
I using telegram api to set the webhook with my project url, when i send some message to the telegram bot, the telegram api will trigger my webhook, but telegram api displaying “Wrong response from the webhook: 403 Forbidden”, so that mean they cannot reach my project endpoint.
Curl itself has their User-Agent headers so it’s works. Without that header, Glitch will throw it into 403 error.
By the way, Telegram Webhook APi seems like didn’t gave any User-agent header during request, So they throw 403 error on it. But if i see, that’s not a bad idea.
Cuz, Everytime i’m requesting to my API endpoint that hosted on glitch, It always forbidden if you don’t provide User-agent headers.
Hi @hoffman If you can provide the name of your project I’ll take a look and see if I can figure out why we aren’t allowing Telegram to send requests to your project.
I’ve discovered that Glitch simply denies requests which don’t contain a User-Agent set in the request header. Does this also apply to boosted projects?
I came across this while attempting to investigate the 403 Forbidden response everyone seems to encounter when using the Telegram Bot API webhook. Some conversations indicate it has to do with the User or User-Agent fields set to TelegramBot, but through trial and error it appears to only occur when the User-Agent field is blank or doesn’t exist.
FYI, I wrote to Telegram Support requesting for a “fix” on their side:
Attn: Telegram Bot API team… can you set a User-Agent value in the Header from webhook requests? This is typically the convention and it’s actually preventing people from building Telegram Bots on Glitch (a very popular development platform). More details here: Allow pinging with boosted project - #11 by demoive