http sniffer looks no problem
image.png
I perform the "GET" command on the Google Sheet link to read data from it. If I directly paste the link into the "GET" command, the tool works. However, if I pass the link through the "Resource" it gives an error: URL rejected: Malformed input to a URL function.
Similarly, when I send a message via Telegram, if I select "Add time to the beginning of the message [hh:mm:ss]," I also receive an error message: URL rejected: Malformed input to a URL function. On the contrary, if I unselect it, the tool works as expected.
Please let me know the reason and how to resolve this.
@ptt-bds said in URL rejected: Malformed input to a URL function:
I perform the "GET" command on the Google Sheet link to read data from it. If I directly paste the link into the "GET" command, the tool works. However, if I pass the link through the "Resource" it gives an error: URL rejected: Malformed input to a URL function.
https://community.bablosoft.com/topic/25945/bug-urgent-http-client/3
Similarly, when I send a message via Telegram, if I select "Add time to the beginning of the message [hh:mm:ss]," I also receive an error message: URL rejected: Malformed input to a URL function. On the contrary, if I unselect it, the tool works as expected.
Please let me know the reason and how to resolve this.
While you can use this fixed module: Telegram.zip
@mocard said in URL rejected: Malformed input to a URL function:
Ждем когда пофиксят.
Был баг, который не задевал скрипты чудом.
В урле не допускается использование пробелов, их надо энкодить и всегда надо было.
Фикс бага в новой версии сломал старые скрипты, которые эксплуатировали этот баг, так бывает.
Можно было сделать обходной путь, что в урле проверятся наличие пробела и он энкодится, если он есть. Но разработчик BAS решил этого не делать.
Вероятно, перед тем как ломать старое поведение, было бы логично фиксить урл, если там пробел и выводить в лог предупреждение, чтобы пользователи пофиксили свои скрипты. А уже спустя пачку версий BAS ломать старое поведение.
@stiwert said in URL rejected: Malformed input to a URL function:
for when a fix ?
changing all my scripts http request is a pain in the ass :(please push an update fix for this asap
This is not a bug and will not be fixed. Moreover, the old behavior is in fact a bug.
https://community.bablosoft.com/topic/25931/url-rejected-malformed-input-to-a-url-function/11
please fix asap this bug is a pain in the ass
The error doesn't only occur with links containing spaces.
For example, with this link:
When I input the URL through a resource and run the GET command in the script, I encounter an error: "URL rejected: Malformed input to a URL function."
But when I directly input the link above into the GET command, it works.
@ptt-bds said in URL rejected: Malformed input to a URL function:
The error doesn't only occur with links containing spaces.
For example, with this link:
When I input the URL through a resource and run the GET command in the script, I encounter an error: "URL rejected: Malformed input to a URL function."
But when I directly input the link above into the GET command, it works.
I checked, sending a GET request to your link entered in the resource is performed correctly. Most likely, you made a mistake when copying the link and inserted additional characters into the resource.

its been years BAS auto encode url.
only in this last version its not anymore.
so what's the bug? an option that has been working same way for years without any issue or an option that has just been changed and broke 30+ projects.
i have more then 30 projects, are you telling me i have to check each http request on all of my 30+ projects ? dont you think this sound like a bug/pain in the ass ?
put back auto url encode or add option in http client to auto encode url turned ON by default so we dont have to edit each of our http request in each of our projects .....
also can we have a link to old BAS version without this "bug/pain in the ass" please , im not ready to edit all my projects http requests i rather use older version of BAS
Это Баг БАСа)) Если используется кубик отправки сообщения в ТГ, пробел добавляется, когда ставишь галочку "Добавить время в начало сообщения"