sahildua2305 / hackIDE

hackIDE is an online code editor, compiler and interpreter based on Django, powered by HackerEarth API! Go, hack it!
http://hackide.herokuapp.com/
292 stars 122 forks source link

Can't run locally properly #34

Closed mananpal1997 closed 8 years ago

mananpal1997 commented 8 years ago

At first, I would always get ArgumentError : Client secret missing even after running with HACKIDE_DEBUG=true.

What's more strange that I just noticed : I changed the urls in views.py from https://api.hackerearth.com/v3/code/compile/ to https://api.hackerearth.com/code/compile/ (running with Version2) If I hit compile now, I get the same ArgumentError, but when I hit run, this happened. one two

wrongsahil commented 8 years ago

If HACKIDE_DEBUG=true, then CLIENT_SECRET=''". Thats why api is creating this error. So for running on debug mode too, CLIENT_SECRET must be assigned the client secret key on HACKIDE_DEBUG=true too.

sahildua2305 commented 8 years ago

@sahil865gupta is right! Thanks.

@mananpal1997 I thought you were already using the CLIENT_SECRET. Weren't you?

mananpal1997 commented 8 years ago

@sahildua2305 Yes, I was. Something strange: I reinstalled Ubuntu and now its running fine :D