Fixing a bug where api_key was set as api_version in the http connection options