Skip to content
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

[$100] challenge detail payload concatenator #3

Open
kbowerma opened this issue Oct 17, 2017 · 2 comments
Open

[$100] challenge detail payload concatenator #3

kbowerma opened this issue Oct 17, 2017 · 2 comments

Comments

@kbowerma
Copy link
Contributor

kbowerma commented Oct 17, 2017

For this challenge, you will be given 20 challenge ids see below. If you make a public API call most of them will return challenge details however some are tasks or have other permission constraints that will return 500s. Your task is to create a script that reads a file which contains a single column of challenge ids and make the challenge detail call based on that id (https://api.topcoder.com/v3/challenges/30059934) and concatenate all the "Good" calls into a single JSON file that is valid. Also, create a log file that contains all the challenge ids and "GOOD" or "BAD" to denote that the challenge details were fetched and put in JSON file. You may submit a bash shell script or a nodejs script with package.json

Here are the sample challenge IDs:
30059936
30059935
30059934
30059933
30059932
30059931
30059930
30059929
30059928
30059927
30059926
30059925
30059924
30059923
30059922
30059921
30059920
30059919
30059918
30059917

@kbowerma
Copy link
Contributor Author

Failed to create challenge
Status code: 503
Response body:

"<!DOCTYPE html>\n\t<html>\n\t  <head>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Application Error</title>\n\t\t<style media=\"screen\">\n\t\t  html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t  }\n\t\t  html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t  }\n\t\t  iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t  }\n\t\t</style>\n\t  </head>\n\t  <body>\n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\"></iframe>\n\t  </body>\n\t</html>"

@kbowerma
Copy link
Contributor Author

Challenge created successfully
Challenge Url: https://www.topcoder.com/challenge-details/30059957/?type=develop&noncache=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant