32 posts
Location
Belgium
Posted 13 June 2015 - 03:27 PM
So i finally got back into CC after a while. And i wrote a few programs in Singleplayer and uploaded them to pastebin. On the server i am able to call the the scripts manual (so i know its enabled) I tried to write a script to get all the required files from pastebin.
shell.run("pastebin get S7L9Wt test")
I would get the following error:
Connecting to pastebin.com…
Failed.Is this intended and is there a way around it?
Or am i doing something wrong?
1522 posts
Location
The Netherlands
Posted 13 June 2015 - 06:47 PM
This means that the connection has failed to pastebin.com.
This can be either problem:
- Your internet connection/firewall doesn't allow it (I'd really doubt this but you never know)
- Your internet connection timed out
So in short, this is a problem at your end, not CC's. Also, since the program pastebin is loaded so you know the http API is enabled.
2679 posts
Location
You will never find me, muhahahahahaha
Posted 13 June 2015 - 09:02 PM
That pastebin is way too short. Have you checked it is correct?
32 posts
Location
Belgium
Posted 13 June 2015 - 09:02 PM
This means that the connection has failed to pastebin.com.
This can be either problem:
- Your internet connection/firewall doesn't allow it (I'd really doubt this but you never know)
- Your internet connection timed out
So in short, this is a problem at your end, not CC's. Also, since the program pastebin is loaded so you know the http API is enabled.
You didn't read it completly. I said it worked fine when i call it manuall(so using pastebin <idname> <name>)
But it ONLY gives me that error when i use the shell.run(). How would i fix this?
Also if i'm on a server how would my connection have timed out…
That pastebin is way too short. Have you checked it is correct?
Seems like that pastebin has been removed but i tried using sKLqTGrM (and i'm sure that works) and it also returned failed.
here is the code:
7083 posts
Location
Tasmania (AU)
Posted 14 June 2015 - 01:48 AM
here is the code:
I can't help but notice that that does
not say "sKLqTGrM".
32 posts
Location
Belgium
Posted 14 June 2015 - 09:06 AM
here is the code:
I can't help but notice that that does
not say "sKLqTGrM".
Haha wow… I feel kind of stupid now. I tried with the CORRECT code and guess what… It actually worked. I wonder how I overlooked that problem a thousand times… Its always the little things that you miss. Thanks a lot!