Patch fixes issue #4

Todo: fix the rest of the 500 internal server errors not mentions in the
issue by correcting the api url call.