{"action":"opened","issue":{"url":"https://api.github.com/repos/keboola/gooddata-provisioning/issues/20","repository_url":"https://api.github.com/repos/keboola/gooddata-provisioning","labels_url":"https://api.github.com/repos/keboola/gooddata-provisioning/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/keboola/gooddata-provisioning/issues/20/comments","events_url":"https://api.github.com/repos/keboola/gooddata-provisioning/issues/20/events","html_url":"https://github.com/keboola/gooddata-provisioning/issues/20","id":364426213,"node_id":"MDU6SXNzdWUzNjQ0MjYyMTM=","number":20,"title":"Invalid token returns 502 Bad Gateway","user":{"login":"ondrejhlavacek","id":497675,"node_id":"MDQ6VXNlcjQ5NzY3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/497675?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejhlavacek","html_url":"https://github.com/ondrejhlavacek","followers_url":"https://api.github.com/users/ondrejhlavacek/followers","following_url":"https://api.github.com/users/ondrejhlavacek/following{/other_user}","gists_url":"https://api.github.com/users/ondrejhlavacek/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejhlavacek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejhlavacek/subscriptions","organizations_url":"https://api.github.com/users/ondrejhlavacek/orgs","repos_url":"https://api.github.com/users/ondrejhlavacek/repos","events_url":"https://api.github.com/users/ondrejhlavacek/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejhlavacek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T11:19:59Z","updated_at":"2018-09-27T11:19:59Z","closed_at":null,"author_association":"MEMBER","body":"Chci založit projekt s non-master tokenem\r\n\r\n```\r\ncurl 'https://gooddata-provisioning.keboola.com/projects?user=true' \\\r\n  -H 'X-StorageApi-Token: 232-143471-***' \\\r\n  --data-binary '{\"name\":\"test\",\"keboolaToken\":\"demo\"}' --compressed\r\n```\r\n=>\r\n```\r\nHTTP/1.1 502 Bad Gateway\r\n\r\n{\"errorMessage\":\"Application Error\", \"errorType\": \"ApplicationError\", \"apiRequestId\": \"2fd3fd20-c234-11e8-b235-37ffe134fe84\"}\r\n```\r\n\r\nzajímavý je, že jinej api call (SSO) s tím stejným tokenem hodí lepší chybu\r\n\r\n```\r\ncurl 'https://gooddata-provisioning.keboola.com/projects/***/access' -X POST \\\r\n  -H 'X-StorageApi-Token: 232-143471-***' \\\r\n  --compressed\r\n```\r\n=>\r\n```\r\nHTTP/1.1 400 Bad Request\r\n\r\n{\"errorMessage\":\"You need a master Storage token\",\"requestId\":\"4388cb25-c23a-11e8-95e9-a76152e0a698\"}\r\n```"}}
{"actor":{"display_login":"ondrejhlavacek"}}