@radb0310 said in Please help me: TypeError: The result of expression 'result' [153,136,234,130] is not a function:
How do I detect that the result function has been overridden,
There is a code: "result = ..." in your script
@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
Это Баг БАСа)) Если используется кубик отправки сообщения в ТГ, пробел добавляется, когда ставишь галочку "Добавить время в начало сообщения"
@upravlenie said in URL rejected: Malformed input to a URL function:
Это Баг БАСа)) Если используется кубик отправки сообщения в ТГ, пробел добавляется, когда ставишь галочку "Добавить время в начало сообщения"
Проблему исправили, временное решение - установить модуль из сообщения выше и пересохранить действия из модуля телеграм
https://community.bablosoft.com/topic/25931/url-rejected-malformed-input-to-a-url-function/9
Столкнулся с такой же проблемаой. У меня
Гет запрос > редиректит, а вот в локейшин редиректа встречаются пробелы ну и получаю такую же ошибку.
Выход не следовать редиректам - получать хедер локейшин исправлять и делать второй запрос - но тот еще прикол конечно.
Так что это вроде баг.
@SuperMario said in URL rejected: Malformed input to a URL function:
Так что это вроде баг.
Баг это пробелы в url ))
@UserTrue said in URL rejected: Malformed input to a URL function:
@SuperMario said in URL rejected: Malformed input to a URL function:
Так что это вроде баг.
Баг это пробелы в url ))
Ну через браузер то нормально обрабатывает этот редирект. А вот чисто на гетах такая фигня.
Думаю стоит именно пробелы проверять ...
@SuperMario браузер сам экранирует, потому что подразумевается что пользователь может ввести все что угодно. А когда сервер в редирект отдает такой то это супер криворукость разработчика этого сервера
@UserTrue said in URL rejected: Malformed input to a URL function:
@SuperMario браузер сам экранирует, потому что подразумевается что пользователь может ввести все что угодно. А когда сервер в редирект отдает такой то это супер криворукость разработчика этого сервера
Ну тут ты не совсем прав - браузер первый гет делает так же, получает локейшин - но в этом локейшене он эти пробелы исправляет и редирект делает корректно. И юзер тут непричем.
Тут как раз косяк баса - он пробелы не проверяет.
PS: спорить не буду - да разработчики этого сайта криворукие. Но факт остается: браузер справляется с этой ситуацией, на гетах приходится мудрить.