Closed mananpal1997 closed 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.
@sahil865gupta is right! Thanks.
@mananpal1997 I thought you were already using the CLIENT_SECRET. Weren't you?
@sahildua2305 Yes, I was. Something strange: I reinstalled Ubuntu and now its running fine :D
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.