Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql-yoga breaks when using "@whatwg-node/fetch": "0.9.15" #3169

Open
michaelmohamed opened this issue Jan 18, 2024 · 0 comments
Open

graphql-yoga breaks when using "@whatwg-node/fetch": "0.9.15" #3169

michaelmohamed opened this issue Jan 18, 2024 · 0 comments

Comments

@michaelmohamed
Copy link

Describe the bug

graphql-yoga, "@whatwg-node/fetch" package dependency is set to "^0.9.7".

When "@whatwg-node/fetch" is updated to version "0.9.15", graphql-yoga breaks and random data is output from the graphql endpoint.

I was able to downgrade to "0.9.14" by adding the following to my package.json file and everything worked as normal.

  "resolutions": {
    "@whatwg-node/fetch": "0.9.14"
  }

Your Example Website or App

none

Steps to Reproduce the Bug or Issue

You can replicate by forcing 0.9.15 as follows:

  "resolutions": {
    "@whatwg-node/fetch": "0.9.15"
  }

Expected behavior

I expect the graphql endpoint to output data. Instead, this is the example of the data I get back from the graphql endpoint when the version is "0.9.15"

{
    "0": 123,
    "1": 34,
    "2": 100,
    "3": 97,
    "4": 116,
    "5": 97,
    "6": 34,
    "7": 58,
    "8": 123,
    "9": 34,
    "10": 77,
    "11": 105,
    "12": 115,
    "13": 115,
    "14": 105,
    "15": 111,
    "16": 110,
    "17": 65,
    "18": 112,
    "19": 105,
    "20": 95,
    "21": 76,
    "22": 105,
    "23": 115,
    "24": 116,
    "25": 77,
    "26": 105,
    "27": 115,
    "28": 115,
    "29": 105,
    "30": 111,
    "31": 110,
    "32": 115,
    "33": 34,
    "34": 58,
    "35": 123,
    "36": 34,
    "37": 109,
    "38": 105,
    "39": 115,
    "40": 115,
    "41": 105,
    "42": 111,
    "43": 110,
    "44": 115,
    "45": 34,
    "46": 58,
    "47": 91,
    "48": 123,
    "49": 34,
    "50": 105,
    "51": 100,
    "52": 34,
    "53": 58,
    "54": 52,
    "55": 44,
    "56": 34,
    "57": 110,
    "58": 97,
    "59": 109,
    "60": 101,
    "61": 34,
    "62": 58,
    "63": 34,
    "64": 89,
    "65": 79,
    "66": 76,
    "67": 79,
    "68": 34,
    "69": 44,
    "70": 34,
    "71": 99,
    "72": 114,
    "73": 101,
    "74": 97,
    "75": 116,
    "76": 101,
    "77": 100,
    "78": 95,
    "79": 97,
    "80": 116,
    "81": 34,
    "82": 58,
    "83": 123,
    "84": 34,
    "85": 115,
    "86": 101,
    "87": 99,
    "88": 111,
    "89": 110,
    "90": 100,
    "91": 115,
    "92": 34,
    "93": 58,
    "94": 49,
    "95": 55,
    "96": 48,
    "97": 52,
    "98": 48,
    "99": 56,
    "100": 56,
    "101": 48,
    "102": 54,
    "103": 50,
    "104": 44,
    "105": 34,
    "106": 95,
    "107": 95,
    "108": 116,
    "109": 121,
    "110": 112,
    "111": 101,
    "112": 110,
    "113": 97,
    "114": 109,
    "115": 101,
    "116": 34,
    "117": 58,
    "118": 34,
    "119": 103,
    "120": 111,
    "121": 111,
    "122": 103,
    "123": 108,
    "124": 101,
    "125": 95,
    "126": 112,
    "127": 114,
    "128": 111,
    "129": 116,
    "130": 111,
    "131": 98,
    "132": 117,
    "133": 102,
    "134": 95,
    "135": 84,
    "136": 105,
    "137": 109,
    "138": 101,
    "139": 115,
    "140": 116,
    "141": 97,
    "142": 109,
    "143": 112,
    "144": 34,
    "145": 125,
    "146": 44,
    "147": 34,
    "148": 95,
    "149": 95,
    "150": 116,
    "151": 121,
    "152": 112,
    "153": 101,
    "154": 110,
    "155": 97,
    "156": 109,
    "157": 101,
    "158": 34,
    "159": 58,
    "160": 34,
    "161": 77,
    "162": 105,
    "163": 115,
    "164": 115,
    "165": 105,
    "166": 111,
    "167": 110,
    "168": 34,
    "169": 125,
    "170": 44,
    "171": 123,
    "172": 34,
    "173": 105,
    "174": 100,
    "175": 34,
    "176": 58,
    "177": 53,
    "178": 44,
    "179": 34,
    "180": 110,
    "181": 97,
    "182": 109,
    "183": 101,
    "184": 34,
    "185": 58,
    "186": 34,
    "187": 102,
    "188": 115,
    "189": 97,
    "190": 105,
    "191": 46,
    "192": 100,
    "193": 101,
    "194": 118,
    "195": 45,
    "196": 97,
    "197": 100,
    "198": 109,
    "199": 105,
    "200": 110,
    "201": 34,
    "202": 44,
    "203": 34,
    "204": 99,
    "205": 114,
    "206": 101,
    "207": 97,
    "208": 116,
    "209": 101,
    "210": 100,
    "211": 95,
    "212": 97,
    "213": 116,
    "214": 34,
    "215": 58,
    "216": 123,
    "217": 34,
    "218": 115,
    "219": 101,
    "220": 99,
    "221": 111,
    "222": 110,
    "223": 100,
    "224": 115,
    "225": 34,
    "226": 58,
    "227": 49,
    "228": 55,
    "229": 48,
    "230": 52,
    "231": 48,
    "232": 56,
    "233": 56,
    "234": 55,
    "235": 53,
    "236": 48,
    "237": 44,
    "238": 34,
    "239": 95,
    "240": 95,
    "241": 116,
    "242": 121,
    "243": 112,
    "244": 101,
    "245": 110,
    "246": 97,
    "247": 109,
    "248": 101,
    "249": 34,
    "250": 58,
    "251": 34,
    "252": 103,
    "253": 111,
    "254": 111,
    "255": 103,
    "256": 108,
    "257": 101,
    "258": 95,
    "259": 112,
    "260": 114,
    "261": 111,
    "262": 116,
    "263": 111,
    "264": 98,
    "265": 117,
    "266": 102,
    "267": 95,
    "268": 84,
    "269": 105,
    "270": 109,
    "271": 101,
    "272": 115,
    "273": 116,
    "274": 97,
    "275": 109,
    "276": 112,
    "277": 34,
    "278": 125,
    "279": 44,
    "280": 34,
    "281": 95,
    "282": 95,
    "283": 116,
    "284": 121,
    "285": 112,
    "286": 101,
    "287": 110,
    "288": 97,
    "289": 109,
    "290": 101,
    "291": 34,
    "292": 58,
    "293": 34,
    "294": 77,
    "295": 105,
    "296": 115,
    "297": 115,
    "298": 105,
    "299": 111,
    "300": 110,
    "301": 34,
    "302": 125,
    "303": 44,
    "304": 123,
    "305": 34,
    "306": 105,
    "307": 100,
    "308": 34,
    "309": 58,
    "310": 49,
    "311": 44,
    "312": 34,
    "313": 110,
    "314": 97,
    "315": 109,
    "316": 101,
    "317": 34,
    "318": 58,
    "319": 34,
    "320": 83,
    "321": 99,
    "322": 97,
    "323": 110,
    "324": 32,
    "325": 82,
    "326": 101,
    "327": 115,
    "328": 116,
    "329": 111,
    "330": 110,
    "331": 34,
    "332": 44,
    "333": 34,
    "334": 99,
    "335": 114,
    "336": 101,
    "337": 97,
    "338": 116,
    "339": 101,
    "340": 100,
    "341": 95,
    "342": 97,
    "343": 116,
    "344": 34,
    "345": 58,
    "346": 123,
    "347": 34,
    "348": 115,
    "349": 101,
    "350": 99,
    "351": 111,
    "352": 110,
    "353": 100,
    "354": 115,
    "355": 34,
    "356": 58,
    "357": 49,
    "358": 55,
    "359": 48,
    "360": 50,
    "361": 54,
    "362": 55,
    "363": 52,
    "364": 55,
    "365": 56,
    "366": 52,
    "367": 44,
    "368": 34,
    "369": 95,
    "370": 95,
    "371": 116,
    "372": 121,
    "373": 112,
    "374": 101,
    "375": 110,
    "376": 97,
    "377": 109,
    "378": 101,
    "379": 34,
    "380": 58,
    "381": 34,
    "382": 103,
    "383": 111,
    "384": 111,
    "385": 103,
    "386": 108,
    "387": 101,
    "388": 95,
    "389": 112,
    "390": 114,
    "391": 111,
    "392": 116,
    "393": 111,
    "394": 98,
    "395": 117,
    "396": 102,
    "397": 95,
    "398": 84,
    "399": 105,
    "400": 109,
    "401": 101,
    "402": 115,
    "403": 116,
    "404": 97,
    "405": 109,
    "406": 112,
    "407": 34,
    "408": 125,
    "409": 44,
    "410": 34,
    "411": 95,
    "412": 95,
    "413": 116,
    "414": 121,
    "415": 112,
    "416": 101,
    "417": 110,
    "418": 97,
    "419": 109,
    "420": 101,
    "421": 34,
    "422": 58,
    "423": 34,
    "424": 77,
    "425": 105,
    "426": 115,
    "427": 115,
    "428": 105,
    "429": 111,
    "430": 110,
    "431": 34,
    "432": 125,
    "433": 44,
    "434": 123,
    "435": 34,
    "436": 105,
    "437": 100,
    "438": 34,
    "439": 58,
    "440": 50,
    "441": 44,
    "442": 34,
    "443": 110,
    "444": 97,
    "445": 109,
    "446": 101,
    "447": 34,
    "448": 58,
    "449": 34,
    "450": 83,
    "451": 99,
    "452": 97,
    "453": 110,
    "454": 32,
    "455": 82,
    "456": 101,
    "457": 115,
    "458": 116,
    "459": 111,
    "460": 110,
    "461": 32,
    "462": 50,
    "463": 34,
    "464": 44,
    "465": 34,
    "466": 99,
    "467": 114,
    "468": 101,
    "469": 97,
    "470": 116,
    "471": 101,
    "472": 100,
    "473": 95,
    "474": 97,
    "475": 116,
    "476": 34,
    "477": 58,
    "478": 123,
    "479": 34,
    "480": 115,
    "481": 101,
    "482": 99,
    "483": 111,
    "484": 110,
    "485": 100,
    "486": 115,
    "487": 34,
    "488": 58,
    "489": 49,
    "490": 55,
    "491": 48,
    "492": 51,
    "493": 57,
    "494": 48,
    "495": 51,
    "496": 57,
    "497": 52,
    "498": 51,
    "499": 44,
    "500": 34,
    "501": 95,
    "502": 95,
    "503": 116,
    "504": 121,
    "505": 112,
    "506": 101,
    "507": 110,
    "508": 97,
    "509": 109,
    "510": 101,
    "511": 34,
    "512": 58,
    "513": 34,
    "514": 103,
    "515": 111,
    "516": 111,
    "517": 103,
    "518": 108,
    "519": 101,
    "520": 95,
    "521": 112,
    "522": 114,
    "523": 111,
    "524": 116,
    "525": 111,
    "526": 98,
    "527": 117,
    "528": 102,
    "529": 95,
    "530": 84,
    "531": 105,
    "532": 109,
    "533": 101,
    "534": 115,
    "535": 116,
    "536": 97,
    "537": 109,
    "538": 112,
    "539": 34,
    "540": 125,
    "541": 44,
    "542": 34,
    "543": 95,
    "544": 95,
    "545": 116,
    "546": 121,
    "547": 112,
    "548": 101,
    "549": 110,
    "550": 97,
    "551": 109,
    "552": 101,
    "553": 34,
    "554": 58,
    "555": 34,
    "556": 77,
    "557": 105,
    "558": 115,
    "559": 115,
    "560": 105,
    "561": 111,
    "562": 110,
    "563": 34,
    "564": 125,
    "565": 44,
    "566": 123,
    "567": 34,
    "568": 105,
    "569": 100,
    "570": 34,
    "571": 58,
    "572": 51,
    "573": 44,
    "574": 34,
    "575": 110,
    "576": 97,
    "577": 109,
    "578": 101,
    "579": 34,
    "580": 58,
    "581": 34,
    "582": 70,
    "583": 111,
    "584": 117,
    "585": 110,
    "586": 100,
    "587": 97,
    "588": 116,
    "589": 105,
    "590": 111,
    "591": 110,
    "592": 32,
    "593": 83,
    "594": 116,
    "595": 97,
    "596": 99,
    "597": 107,
    "598": 32,
    "599": 65,
    "600": 73,
    "601": 34,
    "602": 44,
    "603": 34,
    "604": 99,
    "605": 114,
    "606": 101,
    "607": 97,
    "608": 116,
    "609": 101,
    "610": 100,
    "611": 95,
    "612": 97,
    "613": 116,
    "614": 34,
    "615": 58,
    "616": 123,
    "617": 34,
    "618": 115,
    "619": 101,
    "620": 99,
    "621": 111,
    "622": 110,
    "623": 100,
    "624": 115,
    "625": 34,
    "626": 58,
    "627": 49,
    "628": 55,
    "629": 48,
    "630": 52,
    "631": 48,
    "632": 56,
    "633": 55,
    "634": 57,
    "635": 57,
    "636": 57,
    "637": 44,
    "638": 34,
    "639": 95,
    "640": 95,
    "641": 116,
    "642": 121,
    "643": 112,
    "644": 101,
    "645": 110,
    "646": 97,
    "647": 109,
    "648": 101,
    "649": 34,
    "650": 58,
    "651": 34,
    "652": 103,
    "653": 111,
    "654": 111,
    "655": 103,
    "656": 108,
    "657": 101,
    "658": 95,
    "659": 112,
    "660": 114,
    "661": 111,
    "662": 116,
    "663": 111,
    "664": 98,
    "665": 117,
    "666": 102,
    "667": 95,
    "668": 84,
    "669": 105,
    "670": 109,
    "671": 101,
    "672": 115,
    "673": 116,
    "674": 97,
    "675": 109,
    "676": 112,
    "677": 34,
    "678": 125,
    "679": 44,
    "680": 34,
    "681": 95,
    "682": 95,
    "683": 116,
    "684": 121,
    "685": 112,
    "686": 101,
    "687": 110,
    "688": 97,
    "689": 109,
    "690": 101,
    "691": 34,
    "692": 58,
    "693": 34,
    "694": 77,
    "695": 105,
    "696": 115,
    "697": 115,
    "698": 105,
    "699": 111,
    "700": 110,
    "701": 34,
    "702": 125,
    "703": 93,
    "704": 44,
    "705": 34,
    "706": 95,
    "707": 95,
    "708": 116,
    "709": 121,
    "710": 112,
    "711": 101,
    "712": 110,
    "713": 97,
    "714": 109,
    "715": 101,
    "716": 34,
    "717": 58,
    "718": 34,
    "719": 76,
    "720": 105,
    "721": 115,
    "722": 116,
    "723": 77,
    "724": 105,
    "725": 115,
    "726": 115,
    "727": 105,
    "728": 111,
    "729": 110,
    "730": 115,
    "731": 82,
    "732": 101,
    "733": 115,
    "734": 112,
    "735": 111,
    "736": 110,
    "737": 115,
    "738": 101,
    "739": 34,
    "740": 125,
    "741": 125,
    "742": 125
}

Screenshots or Videos

Platform

  • OS: [e.g. Linux]
  • NodeJS: e.g. 18.17

Note, I am using graphql-mesh. Dependencies are as follows:

    "@graphql-mesh/cli": "0.88.1",
    "@graphql-mesh/grpc": "1.0.0",
    "@graphql-mesh/runtime": "0.96.1",
"@graphql-yoga/logger@^2.0.0":
  version "2.0.0"
  resolved "https://registry.yarnpkg.com/@graphql-yoga/logger/-/logger-2.0.0.tgz#51c91cf07fc42b0d100d887315a20a4c9cac342e"
  integrity sha512-Mg8psdkAp+YTG1OGmvU+xa6xpsAmSir0hhr3yFYPyLNwzUj95DdIwsMpKadDj9xDpYgJcH3Hp/4JMal9DhQimA==
  dependencies:
    tslib "^2.5.2"

"@graphql-yoga/plugin-persisted-operations@^3.0.0":
  version "3.1.1"
  resolved "https://registry.yarnpkg.com/@graphql-yoga/plugin-persisted-operations/-/plugin-persisted-operations-3.1.1.tgz#4c63d21cafaf92d50e8a49eec4334c2b62d5964c"
  integrity sha512-cD7+V19ipICnCZsUtLgOyZV9jcwtTiSFJOGYIZnUG25egUIzXfMmg+EWUZD1uGLKZBKbGWULn9ayc7UW52GSLg==

"@graphql-yoga/subscription@^5.0.0":
  version "5.0.0"
  resolved "https://registry.yarnpkg.com/@graphql-yoga/subscription/-/subscription-5.0.0.tgz#c0aedd3f7c0c0564a2fe687e9f45c16f70bdffc5"
  integrity sha512-Ri7sK8hmxd/kwaEa0YT8uqQUb2wOLsmBMxI90QDyf96lzOMJRgBuNYoEkU1pSgsgmW2glceZ96sRYfaXqwVxUw==
  dependencies:
    "@graphql-yoga/typed-event-target" "^3.0.0"
    "@repeaterjs/repeater" "^3.0.4"
    "@whatwg-node/events" "^0.1.0"
    tslib "^2.5.2"

"@graphql-yoga/typed-event-target@^3.0.0":
  version "3.0.0"
  resolved "https://registry.yarnpkg.com/@graphql-yoga/typed-event-target/-/typed-event-target-3.0.0.tgz#57dc42e052d8294555d26ee61854d72a0236fee0"
  integrity sha512-w+liuBySifrstuHbFrHoHAEyVnDFVib+073q8AeAJ/qqJfvFvAwUPLLtNohR/WDVRgSasfXtl3dcNuVJWN+rjg==
  dependencies:
    "@repeaterjs/repeater" "^3.0.4"
    tslib "^2.5.2"

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant