{"action":"opened","issue":{"url":"https://api.github.com/repos/ibamacsr/sentinelsat/issues/73","repository_url":"https://api.github.com/repos/ibamacsr/sentinelsat","labels_url":"https://api.github.com/repos/ibamacsr/sentinelsat/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/ibamacsr/sentinelsat/issues/73/comments","events_url":"https://api.github.com/repos/ibamacsr/sentinelsat/issues/73/events","html_url":"https://github.com/ibamacsr/sentinelsat/issues/73","id":193308246,"number":73,"title":"\"Full authentication is required to access this resource\"","user":{"login":"ibaris","id":15630368,"avatar_url":"https://avatars.githubusercontent.com/u/15630368?v=3","gravatar_id":"","url":"https://api.github.com/users/ibaris","html_url":"https://github.com/ibaris","followers_url":"https://api.github.com/users/ibaris/followers","following_url":"https://api.github.com/users/ibaris/following{/other_user}","gists_url":"https://api.github.com/users/ibaris/gists{/gist_id}","starred_url":"https://api.github.com/users/ibaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibaris/subscriptions","organizations_url":"https://api.github.com/users/ibaris/orgs","repos_url":"https://api.github.com/users/ibaris/repos","events_url":"https://api.github.com/users/ibaris/events{/privacy}","received_events_url":"https://api.github.com/users/ibaris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-03T19:21:16Z","updated_at":"2016-12-03T19:21:16Z","closed_at":null,"body":"Hello,\r\n\r\nif I try to code a query (python API), I got the error message: \r\n\r\n> SentinelAPIError: # HTTP Status 401 - Full authentication is required to access this resource\r\n> * * *\r\n> **type** Status report\r\n> **message** _Full authentication is required to access this resource_\r\n> **description** _This request requires HTTP authentication._\r\n> * * *\r\n> ### Apache Tomcat/7.0.47 \r\n\r\nHowever, I´m sure that my username and password are correct. \r\n\r\nIf I try to search with the command line, I got the error message: \r\n\r\n> Traceback (most recent call last):[...]\r\n> sentinelsat.sentinel.SentinelAPIError: (HTTP status: 500, code: None)\r\n> # HTTP Status 500 - Server returned HTTP response code: 400 for URL: [...]\r\n> * * *\r\n> **type** Exception report\r\n> **message** _Server returned HTTP response code: 400 for URL: [...]\r\n> **description** _The server encountered an internal error that prevented it from fulfilling this request._\r\n> **exception**\r\n> java.io.IOException: Server returned HTTP response code: 400 for URL: [...]\r\n> **note** _The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs._\r\n\r\nHere is the script for the Python API:\r\n```\r\nfrom sentinelsat.sentinel import SentinelAPI, get_coordinates\r\nfrom datetime import date\r\nimport os\r\n\r\napi = SentinelAPI('xxx', 'yyy', 'https://scihub.copernicus.eu/dhus/')\r\n\r\nWORKDIR    = \"C:\\...\\test\"\r\ngeofile =  WORKDIR + os.sep + os.listdir(WORKDIR)[0]\r\n\r\n# search by polygon, time, and SciHub query keywords\r\n\r\napi.query(get_coordinates(geofile), \\\r\n          \"20151219\", date(2015, 12, 29), \\\r\n          keywords={\"platformname\": \"Sentinel-1\"})\r\n```\r\n\r\nHere is the script for the command line:\r\n```\r\nsentinel search -f -s 20140101 -e 20151004 -q \"producttype=GRD\" -u \"https://scihub.copernicus.eu/dhus/\" xxx yyy C:\\\\...\\\\map.geojson\r\n```\r\n\r\nWhat am I doing wrong?\r\n"}}
{"actor":{"display_login":"ibaris"}}