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

Error when using Pastebin

Started by Ashtoruin, 03 June 2012 - 04:03 PM
Ashtoruin #1
Posted 03 June 2012 - 06:03 PM
Whenever I try to Upload or download something to pastebin it says its connecting and then has an error when dowloading on line 75 or when uploading on line 34, any ideas?
Zalerinian #2
Posted 03 June 2012 - 06:07 PM
is http API on?
Ashtoruin #3
Posted 03 June 2012 - 06:11 PM
Yes, and I forgot to add that the error is "attempt to index ? (a nil value)"
Zalerinian #4
Posted 03 June 2012 - 06:29 PM
Are you spelling the name/code correctly when uploading/downloading the files? Having it incorrect could cause a nil value to occur, although for downloading you would usually get a failed message…
Ashtoruin #5
Posted 03 June 2012 - 06:37 PM
yes, I'm spelling them correctly, or I've screwed it up over 20 times straight, which i kind of doubt, but i cant even look at the code because when i try to edit pastebin it just makes a blank programs…
MysticT #6
Posted 03 June 2012 - 07:24 PM
What forge version are you using? Cause there's a bug (I don't remember in wich version is) that doesn't load the config, so you can't enable the http api. Try using the latest and it should work.
Also, to see one of the default programs in-game you have to use "edit /rom/programs/<Program Name>".
Ashtoruin #7
Posted 03 June 2012 - 08:12 PM
Apparently the server rolled back and it turned the API off after we turned it on… Doh…