You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Playing around with the server so I can get a docker image fully up and running.
Tried doing a post request as noted in the README: requests.post("http://localhost:5151/", json={'submission_id': '58d411e57278611200ee49a6', 'api_key': 'h/52y/E7cm8Ih4F3cVdlBM4ZQxER+Apk6P0L7yR0lFU='})
However, kept getting an error:
numerai-submission-server_1 | File "/submission-criteria/database_manager.py", line 45, in update_leaderboard
numerai-submission-server_1 | TypeError: 'NoneType' object is not subscriptable
Finally figured it out in that the server is still somewhat tied to the Numerai platform in that it's expecting the submission to be in the attached mongo database.
Adding some safety checks with meaningful messages would help for those trying to get this running (and later, to start cutting it into pieces), such as assuming that the submission may not be in the database beforehand:
def update_leaderboard(self, submission_id, filemanager):
submission = self.db.submissions.find_one({"_id":ObjectId(submission_id)})
if submission is None:
logging.getLogger().info("Unable to find submission_id {}".format(submission_id))
# No sense continuing:
return # Depending on coding style. Could return nothing, could raise an error.
The text was updated successfully, but these errors were encountered:
Playing around with the server so I can get a docker image fully up and running.
Tried doing a post request as noted in the README:
requests.post("http://localhost:5151/", json={'submission_id': '58d411e57278611200ee49a6', 'api_key': 'h/52y/E7cm8Ih4F3cVdlBM4ZQxER+Apk6P0L7yR0lFU='})
However, kept getting an error:
Finally figured it out in that the server is still somewhat tied to the Numerai platform in that it's expecting the submission to be in the attached mongo database.
Adding some safety checks with meaningful messages would help for those trying to get this running (and later, to start cutting it into pieces), such as assuming that the submission may not be in the database beforehand:
The text was updated successfully, but these errors were encountered: