{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/alerta/issues/268","repository_url":"https://api.github.com/repos/guardian/alerta","labels_url":"https://api.github.com/repos/guardian/alerta/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/guardian/alerta/issues/268/comments","events_url":"https://api.github.com/repos/guardian/alerta/issues/268/events","html_url":"https://github.com/guardian/alerta/issues/268","id":184236328,"number":268,"title":"Problem with oembed","user":{"login":"JacksonHill","id":12426252,"avatar_url":"https://avatars.githubusercontent.com/u/12426252?v=3","gravatar_id":"","url":"https://api.github.com/users/JacksonHill","html_url":"https://github.com/JacksonHill","followers_url":"https://api.github.com/users/JacksonHill/followers","following_url":"https://api.github.com/users/JacksonHill/following{/other_user}","gists_url":"https://api.github.com/users/JacksonHill/gists{/gist_id}","starred_url":"https://api.github.com/users/JacksonHill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacksonHill/subscriptions","organizations_url":"https://api.github.com/users/JacksonHill/orgs","repos_url":"https://api.github.com/users/JacksonHill/repos","events_url":"https://api.github.com/users/JacksonHill/events{/privacy}","received_events_url":"https://api.github.com/users/JacksonHill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T13:54:27Z","updated_at":"2016-10-30T09:21:09Z","closed_at":"2016-10-30T09:19:54Z","body":"Oembed isn't loading anymore - there is only loading screen. I have narrowed down the problem to exception: \r\n\r\n` File \"/opt/alerta/alerta/app/utils.py\", line 42, in decorated\r\n    data = str(func(*args, **kwargs).data)\r\nAttributeError: 'tuple' object has no attribute 'data'\r\n`\r\nwhich point's to JSONP decorator.\r\n\r\nI think it may be something with nginx-uwsgi configuration, because it works properly, when API is launched by flask development server.\r\n\r\nI have checked incoming headers and args (log) in both configurations and they are the same:\r\n\r\n./alertad:\r\narguments: \r\n`ImmutableMultiDict([('callback', u'jQuery213033999841793487584_1477465316947'), ('_', u'1477465316948'), ('maxwidth', u'200'), ('title', u'JIRA'), ('url', u'http://xxx.westeurope.cloudapp.azure.com:8080/alerts/count?service=www.jira.com&status=open'), ('api-key', u'-xwVGk2D2J0bvZUayUy0ZzItXy9PNcGG6O3xta5b'), ('maxheight', u'200')])\r\n`\r\n\r\nheaders:\r\n`Referer: http://xxx.westeurope.cloudapp.azure.com:8000/monitor/\r\nContent-Length:\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36\r\nConnection: keep-alive\r\nHost: xxx.westeurope.cloudapp.azure.com:8080\r\nCache-Control: max-age=0\r\nAccept: */*\r\nAccept-Language: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4\r\nContent-Type:\r\nAccept-Encoding: gzip, deflate, sdch`\r\n\r\n\r\nnginx-uwsgi:\r\narguments:\r\n`ImmutableMultiDict([('callback', u'jQuery21305508772435219305_1477465091426'), ('_', u'1477465091427'), ('maxwidth', u'200'), ('title', u'JIRA'), ('url', u'http://xxx.westeurope.cloudapp.azure.com:8080/alerts/count?service=www.jira.com&status=open'), ('api-key', u'-xwVGk2D2J0bvZUayUy0ZzItXy9PNcGG6O3xta5b'), ('maxheight', u'200')])`\r\n\r\nheaders: \r\n`Referer: http://xxx.westeurope.cloudapp.azure.com:8000/monitor/\r\nContent-Length:\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36\r\nConnection: keep-alive\r\nHost: xxx.westeurope.cloudapp.azure.com:8080\r\nAccept: */*\r\nAccept-Language: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4\r\nContent-Type:\r\nAccept-Encoding: gzip, deflate, sdch`"},"comment":{"url":"https://api.github.com/repos/guardian/alerta/issues/comments/257140542","html_url":"https://github.com/guardian/alerta/issues/268#issuecomment-257140542","issue_url":"https://api.github.com/repos/guardian/alerta/issues/268","id":257140542,"user":{"login":"satterly","id":615057,"avatar_url":"https://avatars.githubusercontent.com/u/615057?v=3","gravatar_id":"","url":"https://api.github.com/users/satterly","html_url":"https://github.com/satterly","followers_url":"https://api.github.com/users/satterly/followers","following_url":"https://api.github.com/users/satterly/following{/other_user}","gists_url":"https://api.github.com/users/satterly/gists{/gist_id}","starred_url":"https://api.github.com/users/satterly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satterly/subscriptions","organizations_url":"https://api.github.com/users/satterly/orgs","repos_url":"https://api.github.com/users/satterly/repos","events_url":"https://api.github.com/users/satterly/events{/privacy}","received_events_url":"https://api.github.com/users/satterly/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T09:21:09Z","updated_at":"2016-10-30T09:21:09Z","body":"I've refactored the oembed endpoint and testing shows it to work with uWsgi now."}}
{"actor":{"display_login":"satterly"}}