{"action":"created","issue":{"url":"https://api.github.com/repos/keboola/gooddata-writer/issues/54","repository_url":"https://api.github.com/repos/keboola/gooddata-writer","labels_url":"https://api.github.com/repos/keboola/gooddata-writer/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/keboola/gooddata-writer/issues/54/comments","events_url":"https://api.github.com/repos/keboola/gooddata-writer/issues/54/events","html_url":"https://github.com/keboola/gooddata-writer/issues/54","id":364391264,"node_id":"MDU6SXNzdWUzNjQzOTEyNjQ=","number":54,"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":[{"id":191006066,"node_id":"MDU6TGFiZWwxOTEwMDYwNjY=","url":"https://api.github.com/repos/keboola/gooddata-writer/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T09:47:29Z","updated_at":"2018-09-27T11:18:43Z","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```"},"comment":{"url":"https://api.github.com/repos/keboola/gooddata-writer/issues/comments/425053498","html_url":"https://github.com/keboola/gooddata-writer/issues/54#issuecomment-425053498","issue_url":"https://api.github.com/repos/keboola/gooddata-writer/issues/54","id":425053498,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTA1MzQ5OA==","user":{"login":"JakubMatejka","id":215660,"node_id":"MDQ6VXNlcjIxNTY2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/215660?v=4","gravatar_id":"","url":"https://api.github.com/users/JakubMatejka","html_url":"https://github.com/JakubMatejka","followers_url":"https://api.github.com/users/JakubMatejka/followers","following_url":"https://api.github.com/users/JakubMatejka/following{/other_user}","gists_url":"https://api.github.com/users/JakubMatejka/gists{/gist_id}","starred_url":"https://api.github.com/users/JakubMatejka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakubMatejka/subscriptions","organizations_url":"https://api.github.com/users/JakubMatejka/orgs","repos_url":"https://api.github.com/users/JakubMatejka/repos","events_url":"https://api.github.com/users/JakubMatejka/events{/privacy}","received_events_url":"https://api.github.com/users/JakubMatejka/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T11:18:43Z","updated_at":"2018-09-27T11:18:43Z","author_association":"MEMBER","body":"To patří nejspíš do `keboola/gooddata-provisioning`, prosím.\n\nOn Thu, 27 Sep 2018, 11:47 Ondřej Hlaváček, <notifications@github.com>\nwrote:\n\n> Chci založit projekt s non-master tokenem\n>\n> curl 'https://gooddata-provisioning.keboola.com/projects?user=true' \\\n>   -H 'X-StorageApi-Token: 232-143471-***' \\\n>   --data-binary '{\"name\":\"test\",\"keboolaToken\":\"demo\"}' --compressed\n>\n> =>\n>\n> HTTP/1.1 502 Bad Gateway\n>\n> {\"errorMessage\":\"Application Error\", \"errorType\": \"ApplicationError\", \"apiRequestId\": \"2fd3fd20-c234-11e8-b235-37ffe134fe84\"}\n>\n> zajímavý je, že jinej api call (SSO) s tím stejným tokenem hodí lepší chybu\n>\n> curl 'https://gooddata-provisioning.keboola.com/projects/***/access' -X POST \\\n>   -H 'X-StorageApi-Token: 232-143471-***' \\\n>   --compressed\n>\n> =>\n>\n> HTTP/1.1 400 Bad Request\n>\n> {\"errorMessage\":\"You need a master Storage token\",\"requestId\":\"4388cb25-c23a-11e8-95e9-a76152e0a698\"}\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/keboola/gooddata-writer/issues/54>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AANKbCCKaxBAb0nsbc-aLY1_eoRgqzEUks5ufJ61gaJpZM4W8Sg6>\n> .\n>\n"}}
{"actor":{"display_login":"JakubMatejka"}}