{"action":"closed","issue":{"url":"https://api.github.com/repos/prismagraphql/graphql-request/issues/85","repository_url":"https://api.github.com/repos/prismagraphql/graphql-request","labels_url":"https://api.github.com/repos/prismagraphql/graphql-request/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/prismagraphql/graphql-request/issues/85/comments","events_url":"https://api.github.com/repos/prismagraphql/graphql-request/issues/85/events","html_url":"https://github.com/prismagraphql/graphql-request/issues/85","id":328569958,"node_id":"MDU6SXNzdWUzMjg1Njk5NTg=","number":85,"title":"Problem: realFetch.call is not a function","user":{"login":"panzupa","id":22025007,"node_id":"MDQ6VXNlcjIyMDI1MDA3","avatar_url":"https://avatars0.githubusercontent.com/u/22025007?v=4","gravatar_id":"","url":"https://api.github.com/users/panzupa","html_url":"https://github.com/panzupa","followers_url":"https://api.github.com/users/panzupa/followers","following_url":"https://api.github.com/users/panzupa/following{/other_user}","gists_url":"https://api.github.com/users/panzupa/gists{/gist_id}","starred_url":"https://api.github.com/users/panzupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panzupa/subscriptions","organizations_url":"https://api.github.com/users/panzupa/orgs","repos_url":"https://api.github.com/users/panzupa/repos","events_url":"https://api.github.com/users/panzupa/events{/privacy}","received_events_url":"https://api.github.com/users/panzupa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-01T15:45:59Z","updated_at":"2018-08-10T07:32:37Z","closed_at":"2018-08-10T07:32:37Z","author_association":"NONE","body":"Hi All,\r\n\r\nI'm using `graphql-request` to connect from my lambda function to Graph.cool service.\r\nMy code works local without problem but when deployed on Lambda there is following error:\r\n```\r\nTypeError: realFetch.call is not a function\r\n    at Object.fetch (/var/task/src/functions/webpack:/node_modules/cross-fetch/dist/node-ponyfill.js:9:1)\r\n    at GraphQLClient.<anonymous> (/var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:105:1)\r\n    at step (/var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:40:1)\r\n    at Object.next (/var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:21:45)\r\n    at /var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:15:1\r\n    at new Promise (<anonymous>)\r\n    at __awaiter (/var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:11:1)\r\n    at GraphQLClient.request (/var/task/src/functions/webpack:/node_modules/graphql-request/dist/src/index.js:95:1)\r\n    at updatedDb (/var/task/src/functions/webpack:/src/utils/updateDb.js:55:41)\r\n    at loader.getJobs.map.e (/var/task/src/functions/webpack:/src/functions/fetch.js:17:50)\r\n(node:1) UnhandledPromiseRejectionWarning: Error: TypeError: realFetch.call is not a function\r\n    at Promise.all.then.catch.err (/var/task/src/functions/webpack:/src/functions/fetch.js:22:17)\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\n```\r\n\r\nMy code is transpiled by webpack but it's obvious the there is some problem with cross-fetch dependency of `graphql-request`: **/node_modules/cross-fetch/dist/node-ponyfill.js:9:1**.\r\n\r\nCould you plese help me? I don't know how to solve that issue."}}
{"actor":{"display_login":"divyenduz"}}