{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/2034","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/2034/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/2034/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/2034/events","html_url":"https://github.com/nuxt/nuxt.js/issues/2034","id":271602508,"number":2034,"title":"Open Graph Facebook meta tags - Server error","user":{"login":"atmar","id":8886661,"avatar_url":"https://avatars2.githubusercontent.com/u/8886661?v=4","gravatar_id":"","url":"https://api.github.com/users/atmar","html_url":"https://github.com/atmar","followers_url":"https://api.github.com/users/atmar/followers","following_url":"https://api.github.com/users/atmar/following{/other_user}","gists_url":"https://api.github.com/users/atmar/gists{/gist_id}","starred_url":"https://api.github.com/users/atmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atmar/subscriptions","organizations_url":"https://api.github.com/users/atmar/orgs","repos_url":"https://api.github.com/users/atmar/repos","events_url":"https://api.github.com/users/atmar/events{/privacy}","received_events_url":"https://api.github.com/users/atmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-06T20:03:44Z","updated_at":"2017-11-06T21:56:49Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nWhen I'm testing out the open graph on our new site, it just gives us a generic nuxt server error with no extra information. You can view it at https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fstore.gameodds.gg%2Fgame%2Ffantasy-bundle . When I visit the site, all meta tags are visible and correct.\r\n\r\nhead code:\r\n```\r\n  head() {\r\n    let product = this.product\r\n    return {\r\n      title: `${product.name} (PC) - Gameodds.gg`,\r\n      meta: [\r\n        {\r\n          hid: `description`,\r\n          name: 'description',\r\n          content: product.short_description\r\n        },\r\n        {\r\n          hid: `keywords`,\r\n          name: 'keywords',\r\n          keywords: product.name\r\n        },\r\n        {\r\n          hid: `og:title`,\r\n          property: 'og:title',\r\n          content: `${product.name} (PC) - Gameodds.gg`\r\n        },\r\n        {\r\n          hid: `og:url`,\r\n          property: 'og:url',\r\n          content: 'https://store.gameodds.gg' + this.$route.fullPath\r\n        },\r\n        {\r\n          hid: `og:image`,\r\n          property: 'og:image',\r\n          content: `${this.$store.state.imageUrl}/assets/img/products/header/460x215/${product.product.image_cover}`\r\n        },\r\n        {\r\n          hid: `og:description`,\r\n          property: 'og:description',\r\n          content: product.short_description\r\n        }\r\n      ]\r\n    }\r\n  },\r\n```"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/342301028","html_url":"https://github.com/nuxt/nuxt.js/issues/2034#issuecomment-342301028","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/2034","id":342301028,"user":{"login":"NicoPennec","id":493223,"avatar_url":"https://avatars3.githubusercontent.com/u/493223?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoPennec","html_url":"https://github.com/NicoPennec","followers_url":"https://api.github.com/users/NicoPennec/followers","following_url":"https://api.github.com/users/NicoPennec/following{/other_user}","gists_url":"https://api.github.com/users/NicoPennec/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoPennec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoPennec/subscriptions","organizations_url":"https://api.github.com/users/NicoPennec/orgs","repos_url":"https://api.github.com/users/NicoPennec/repos","events_url":"https://api.github.com/users/NicoPennec/events{/privacy}","received_events_url":"https://api.github.com/users/NicoPennec/received_events","type":"User","site_admin":false},"created_at":"2017-11-06T21:56:49Z","updated_at":"2017-11-06T21:56:49Z","author_association":"NONE","body":"I have a hypothesis for your error 500 (but I can't check your nginx error logs `/var/log/nginx/error.log`)\r\n\r\nWith wget or curl or from facebook test page, you request with the protocole http/1.\r\nBut from a browser (chrome, firefox, edge), you request with the protocole http/2.\r\nSo, maybe your server is not configured to fallbakc on http1 properly ???\r\n\r\nCan you share an extract of your nginx config (from `/etc/nginx/sites-enabled/xxx` ) ?\r\nand your `nuxt.config.js` file too?"}}
{"actor":{"display_login":"NicoPennec"}}