{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/3287","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3287/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3287/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3287/events","html_url":"https://github.com/apollographql/apollo-client/issues/3287","id":312207060,"node_id":"MDU6SXNzdWUzMTIyMDcwNjA=","number":3287,"title":"React-Native GraphQL problem unsupported BodyInit type","user":{"login":"kondricz","id":30053409,"node_id":"MDQ6VXNlcjMwMDUzNDA5","avatar_url":"https://avatars2.githubusercontent.com/u/30053409?v=4","gravatar_id":"","url":"https://api.github.com/users/kondricz","html_url":"https://github.com/kondricz","followers_url":"https://api.github.com/users/kondricz/followers","following_url":"https://api.github.com/users/kondricz/following{/other_user}","gists_url":"https://api.github.com/users/kondricz/gists{/gist_id}","starred_url":"https://api.github.com/users/kondricz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kondricz/subscriptions","organizations_url":"https://api.github.com/users/kondricz/orgs","repos_url":"https://api.github.com/users/kondricz/repos","events_url":"https://api.github.com/users/kondricz/events{/privacy}","received_events_url":"https://api.github.com/users/kondricz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-07T13:34:16Z","updated_at":"2018-06-12T02:12:02Z","closed_at":null,"author_association":"NONE","body":"Hi Apollo Team!\r\n\r\nI have stumblod upon the lethal 'unsupported BodyInit type' error trying to integrate Apollo and my GraphQL server to my application. \r\n\r\nMy server works fine from web. Because of CORS first it is sending an OPTIONS request and after a POST request ( GraphQL gets information with POST). I do debugging in chrome:\r\nOPTIONS doesnt have any response at all, but my second, POST requests response contains everything what is wanted.\r\n\r\nBut I can't acces the data from my second POST request because of the error generated\r\n\r\n#  unsupported BodyInit type\r\n\r\n    at Response.Body._initBody (blob:http://localhost:8081/7b070e74-d740-4247-b993-0e402e0f2d72:15595)\r\n    at new Response (blob:http://localhost:8081/7b070e74-d740-4247-b993-0e402e0f2d72:15766)\r\n    at XMLHttpRequest.xhr.onload (blob:http://localhost:8081/7b070e74-d740-4247-b993-0e402e0f2d72:15821)\r\n\r\nMy Apollo config:\r\n\r\n```\r\n\r\nimport ApolloClient from 'apollo-client'\r\nimport { ApolloProvider } from 'react-apollo'\r\nimport { HttpLink, createHttpLink } from 'apollo-link-http';\r\nimport { InMemoryCache } from 'apollo-cache-inmemory';\r\n\r\nconst URL_DEV = 'http://localhost:4000/graphql';\r\nconst URL_PROD = null;\r\n\r\nconst linkOptions = {\r\n    uri: URL_DEV,\r\n}\r\n\r\nconst apolloClient = new ApolloClient({\r\n    link: new HttpLink(linkOptions), \r\n    cache: new InMemoryCache(),\r\n})\r\n\r\nexport default apolloClient;\r\n\r\n```\r\n\r\nMy top component is properly wrapped with \r\n```\r\n<ApolloProvider client={apolloclient}>\r\n```\r\n\r\nMy queries are in place used with the proper syntax.\r\nMy server also logs requests fine and works well from the graphic surface.\r\n\r\nCONFIG:\r\n\r\nclient:\r\n\r\n    \"apollo-cache-inmemory\": \"^1.1.12\",\r\n    \"apollo-client\": \"^2.2.8\",\r\n    \"apollo-link-http\": \"^1.5.3\",\r\n    \"graphql\": \"^0.13.2\",\r\n    \"graphql-tag\": \"^2.8.0\",\r\n    \"react\": \"16.3.1\",\r\n    \"react-apollo\": \"^2.1.3\",\r\n    \"react-native\": \"0.55.1\"\r\n\r\nserver:\r\n\r\n    \"apollo-engine\": \"^0.8.8\",\r\n    \"apollo-server-express\": \"^1.3.2\",\r\n    \"apollo-tracing\": \"^0.1.3\",\r\n    \"babel-cli\": \"^6.26.0\",\r\n    \"babel-plugin-transform-async-generator-functions\": \"^6.24.1\",\r\n    \"babel-plugin-transform-object-rest-spread\": \"^6.26.0\",\r\n    \"babel-plugin-transform-runtime\": \"^6.23.0\",\r\n    \"babel-preset-latest\": \"^6.24.1\",\r\n    \"body-parser\": \"^1.18.2\",\r\n    \"cors\": \"^2.8.4\",\r\n    \"express\": \"^4.16.2\",\r\n    \"express-graphql\": \"^0.6.11\",\r\n    \"firebase\": \"^4.9.1\",\r\n    \"graphql\": \"^0.12.3\",\r\n    \"graphql-extensions\": \"^0.0.7\",\r\n    \"graphql-tools\": \"^2.20.0\",\r\n    \"http-proxy-middleware\": \"^0.18.0\",\r\n    \"nodemon\": \"^1.14.12\",\r\n    \"schemaglue\": \"^1.5.1\",\r\n    \"webtask-tools\": \"^3.2.0\"\r\n\r\n\r\n\r\nHave You had this issue so far?\r\nThanks,\r\n\r\nKoppany\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/comments/396443182","html_url":"https://github.com/apollographql/apollo-client/issues/3287#issuecomment-396443182","issue_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3287","id":396443182,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjQ0MzE4Mg==","user":{"login":"mcmar","id":8251430,"node_id":"MDQ6VXNlcjgyNTE0MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/8251430?v=4","gravatar_id":"","url":"https://api.github.com/users/mcmar","html_url":"https://github.com/mcmar","followers_url":"https://api.github.com/users/mcmar/followers","following_url":"https://api.github.com/users/mcmar/following{/other_user}","gists_url":"https://api.github.com/users/mcmar/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmar/subscriptions","organizations_url":"https://api.github.com/users/mcmar/orgs","repos_url":"https://api.github.com/users/mcmar/repos","events_url":"https://api.github.com/users/mcmar/events{/privacy}","received_events_url":"https://api.github.com/users/mcmar/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T02:12:01Z","updated_at":"2018-06-12T02:12:01Z","author_association":"NONE","body":"@kondricz Have you found a workaround for this? Please update us."}}
{"actor":{"display_login":"mcmar"}}