I am getting an error of doing a n illegal operation?

I got this:

I went to API devs and they told me the cookieLogin creates a file and that might be the reason on why it didnt work but I need it to work otherwise my project would be useless since it’s the only way for me to get the data I need.

What exactly happened? Can you reword what you are trying to say?

The function over there creates a file, when the functions creates the file, glitch returns that error and the project stops working.

I happen to find other way to get it without, however I get this…

Can it be fixed?