Jump to content
UBot Underground

"Sequence contains no elements" error?


Recommended Posts

I am getting an error when I try to run my script:

 

"Error: Sequence contains no elements

Source: Skype Account Creator > Untitled Script > MainThread > Create Skype Account"

 

The path it refers to is a function, Create Skype Account. It is defined as such:

 

 

 

define Create Skype Account {
    reset account("Any")
    clear cookies
    if($comparison(#useProxies, "=", 1)) {
        then {
            set(#currentStep, "Changing proxy", "Global")
            set(#proxy, $random list item(%proxyList), "Local")
            loop while($comparison(#proxy, "=", "")) {
                set(#proxy, $random list item(%proxyList), "Local")
            }
            set(#currentProxy, #proxy, "Global")
            change proxy("socks4://{#proxy}:59999")
        }
        else {
            set(#proxy, "", "Local")
        }
    }

    ........ rest of code .......

}
 

 

.. etc etc. There certainly is a lot of "sequence" in it :D. The function worked in the past. I have no idea why this error is popping up now. Yet another thing that would be great for an actual debugger (not just a window showing the values of variables) could aide in debugging.  I cannot find reference to this error message anywhere else.

Link to post
Share on other sites

I didn't know that "append to file" was a built-in command; UBot Studio's IDE must've been trying to auto-correct the line in the editor. I changed the name of the custom function append to line to append to and it's working fine. This was something that wasn't documented in the documentation that came with the program, and I wasn't aware of it. UBot studio also did not tell me that there was a conflicting function/command name. Either way, it's fixed, and now the program is no longer giving the Sequence contains no elements error. So, if anyone gets this error, please make sure your syntax is correct and that you haven't over-ridden a built-in command or function with your own!

 

Regards,

Brandon

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...