This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Failip's profile picture

Computercraft 1.2.5 Pastebin Error PLEASE HELP

Started by Failip, 01 April 2015 - 10:21 AM
Failip #1
Posted 01 April 2015 - 12:21 PM
Hello Gujs Im On Tekkit Classic 1.2.5 when i try to put: pastebing get Nqgzim3m startup

it gives me an error: connection to pastebin.com… pastebin:75:
attempt to index? (a nil value)


i looked at the code but cant find any thing this is the code at line 75

local response = http.get("http://pastebin.com/raw.php?i="..textutils.UrlEncode( sCode ))

If u can help then please help me
Lyqyd #2
Posted 01 April 2015 - 03:26 PM
Moved to Ask a Pro.
Lignum #3
Posted 01 April 2015 - 03:33 PM
You have to enable the HTTP API in the ComputerCraft config. You can find the config in the .minecraft/config directory. Since you're using technic it's probably something like .technic/modpacks/tekkit/config.
Square789 #4
Posted 01 April 2015 - 03:55 PM
Also make sure that in the whitelist config file in .technic/{YourModpackName}/config/ComputerCraft the "http_whitelist" is set to "S:http_whitelist=*" (without "s) or at least "S:http_whitelist=*.pastebin.com"

EDIT:Sorry, i meant the config file
Edited on 01 April 2015 - 02:03 PM
Lyqyd #5
Posted 01 April 2015 - 03:56 PM
There is no whitelist in the CC configuration file for that version.