-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Judge0 API Dummy client #45
Comments
Hi @swamydg, You should seed your database:
After that make sure that you are getting right languages https://api.judge0.com/#statuses-and-languages-languages-get. Let me know if I can help you more. BR, |
Hi Herman thank you for giving reply, five@five:~$ docker-compose exec api rails db:seed *** one more problem is that when I changed RAILS_ENV to production in judge0/api.conf contianer is continuously restarting... if left blank its working RAILS_ENV= production is this the way of mentioning or any other way? Thank you |
Hi Herman PG::UndefinedColumn: ERROR: column "increment_by" does not exist Tasks: TOP => db:setup => db:seed |
Same for me, after following the steps given in the README, I ended up with the same error:
I'm also interested in knowing how to solve this issue! |
Hi @swamydg and @rginestou, sorry for the delay. I think that the problem is with postgres image version. Can you please in Before you change that make sure you do After you changed postgres image try again from the ground up with the:
Please let me know if that worked out. Can you also please send me an email with your use-case and brief explanation of why did you choose to setup your own production instance of Judge0 API? You can find my email on my GitHub page. Your email will help me understand your needs better, and allow me to improve Judge0 API. 😄 |
Hi @hermanzdosilovic , Thanks, it just did the trick! 👍 |
It worked ...Thank you |
Deployed production judge0 API in docker with the prescribed steps provided in the document, when testing by using dummy client we are getting this error.
URL is provided is down here.
Thank you.
Request/Response Log
[Request 25/04/2018, 16:06:32] POST http://183.82.3.219:3000/submissions?wait=true
{
"source_code": "#include <stdio.h>\n\nint main(void) {\n char name[10];\n scanf("%s", name);\n printf("hello, %s\n", name);\n return 0;\n}",
"language_id": "4",
"number_of_runs": "1",
"stdin": "Judge0",
"expected_output": "hello, Judge0",
"cpu_time_limit": "2",
"cpu_extra_time": "0.5",
"wall_time_limit": "5",
"memory_limit": "128000",
"stack_limit": "64000",
"max_processes_and_or_threads": "30",
"enable_per_process_and_thread_time_limit": false,
"enable_per_process_and_thread_memory_limit": true,
"max_file_size": "1024"
}
[Response 25/04/2018, 16:06:32] 422 Unprocessable Entity
{
"readyState": 4,
"responseText": "{"language_id":["language with id 4 doesn't exist"]}",
"responseJSON": {
"language_id": [
"language with id 4 doesn't exist"
]
},
"status": 422,
"statusText": "Unprocessable Entity"
}
[DONE 25/04/2018, 16:06:32]
The text was updated successfully, but these errors were encountered: