Ошибка ReferenceError: Can't find variable: hash during execution of action

Поддержка
  • @Nomad88 said in Ошибка ReferenceError: Can't find variable: hash during execution of action:

    Ошибка: "ReferenceError: Can't find variable: hash during execution of action" - пропала.

    Это не BAS "виноват", а руки кодера, который установил кастомный модуль прокси.

    @Nomad88 said in Ошибка ReferenceError: Can't find variable: hash during execution of action:

    Включение node js внутри проекта +восстановление всего кода в каждом из кубиков node js из бэкапов, т.к. слетело.

    Встречал такое один раз, что после обновления с конкретной версии BAS на любую новее был такой баг. По моему это случилось у меня, когда появилась последняя NodeJS.

    Восстанавливал также кубики, но не полдня, конечно, так как я даже для BAS использую IDE(и git), чтобы просматривать изменения, а там восстановить только часть скрипта можно довольно быстро.

    Правой клавишей на изменениях(строка) и можно восстановить кубик с утерянной инфой. Ну и вообще просмотреть что BAS "наворотил" мне при обновлении.

    f3840a86-1a11-434d-b0a5-1fa16adff593-image.png

    @Nomad88 said in Ошибка ReferenceError: Can't find variable: hash during execution of action:

    Заново выбор базы во всех элементах относящихся к действиям работы с базами данных, т.к. слетело.

    Тоже самое, если использовать нужные инструменты, восстановить можно за 5 минут.

  • @Nomad88 we have been forced to sort all of these in the past (not recent update for us), large headache

  • @sergerdn 159265c0-6195-4380-b9be-4f45a9058dd1-image.png

    Никаких кастомных проксей.

    Обновление версии программы -это как пройти ТО. Никто не должен после ТО разбирать машину заново и проверять каждый сегмент, каждый винтик на его наличие или как он закручен.
    В коддинге есть такое понятие как бета версия программы. Энтузиасты (или люди, которые не покупают платный продукт) скачивают такие программы и тестируют их, предоставляя по мере возможности отчёты и баги разработчику.
    У BAS есть два сегмента: PRO версия и обычная. Разумно и логично будет вносить серьёзные правки в PRO версию, только после тишины на форуме и внесённых правок в бесплатную версию.
    То что я наблюдал после обновления программы - не допустимо в взрослом мире, где люди несут ответственность за свои действия.

  • @Nomad88 said in Ошибка ReferenceError: Can't find variable: hash during execution of action:

    Обновление версии программы -это как пройти ТО.

    В мире frontend иногда после обновления библиотеки надо половину сайта переписать заново😂.

  • This error suck . I hate it.

  • @mthuyet98
    Have you tried recreating the "Proxy" action in the project?

  • @m4zuper yes, it still comes back it very weird error

  • Found the same issue in one of my functions today. It's only happening on compiled versions. What's weird is I run the exact same logic order (Browser settings > Proxy > browser actions) in the same function and other functions in the same program and other programs with absolutely no problems. I checked function names and renaming functions, even renaming variables, to no avail. The only solution I found was running an empty Proxy module just before I ran the Proxy with my proxy info where the error was happening.

    The problem seems to happen for me when loading a browser profile that's already been created with Browser settings, then Proxy module after.

  • @WebMagic its the proxy module itself no one knows why but hope it becomes fixed

  • @support can you report this to be fixed. It is recognition of variable on Proxy block, I have to rename all relate variables if want it to run
    In record mode it will work, but when compiled to client it is show the error.
    Error report:
    Can't find variable: hash during execution of action

  • @mthuyet98 we agree very ~ annoying bug upon compiling ~ please fix

  • @mthuyet98 @genericname1
    Does this happen on the latest version too?
    I can't reproduce it yet.
    Please attach the test projects in .xml format, after compiling which you get the error.
    Also please attach a screenshot with the settings that you use to compile the project.

  • it happens after you edit a compiled script

    I will send next time i have it

    But if you edit compiled script then compile again, thats usually when it occurs
    happens about once a day usually, yet its annoying cause you need to watch out for it before telling customer to restart module as if the error occurs the proxy is not applied

    How i fix is adding sleep = 0 milliseconds to the proxy function
    that usually works