Skip to content
Source
Sign inSign up
TanStack/query

error on page : https://react-query.tanstack.com/examples/nextjs needs "web-streams-polyfill " in codesandbox for Ky to work... #2122

Send to my agent
Closedlemarcgagnon(GitHub profile, opens in a new tab) opened this issue 8 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://react-query.tanstack.com/examples/nextjs'
  2. Click on 'Nextjs SSG'
  3. Scroll down to '....'
  4. 502 Bad Gateaway

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g.Linux]
  • Browser: [e.g. chrome]
  • Version: [e.g. 22]

Additional context Although I am quite a newbie, i saw that we could resolve the bad Gate Away 502 is for "Ky" by adding this dependency to the Dependencies listing:

npm install web-streams-polyfill --save

as per https://www.npmjs.com/package/ky-universal instructions.

then the whole thing works just fine.

Yours,

Marc

  1. very good find. would you like to PR that please?

  2. Hello Dominik,

    As i said, I am quite a newbie and have no idea about your "PR" request proposal. Hope I could help you with this, but sincerely I have no clue about what your are saying.

    Keep on the good work and thank you so much for your good work,

    Marc

    On Wed, Apr 14, 2021 at 5:22 PM Dominik Dorfmeister < @.***> wrote:

    very good find. would you like to PR that please?

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-query/issues/2122#issuecomment-819603862>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APLLEUUKCGQIUUSOAPROR2DTIWXMPANCNFSM425TBCNQ> .

  3. okay, no worries. So the way open source works is that everyone can contribute. To do that, you need to fork the repository to your own account (top right button in github), then create a branch. You can then implement the fix, in this case it's just adding that dependency to package.json in the example. After that, you can make a PR (pull request) from your branch to this repository - just go to the Pull Requests tab here and click on New Pull Request.

    make sure to adhere to the commit message convention, you can read about it here: https://github.com/tannerlinsley/react-query/blob/master/CONTRIBUTING.md#commit-message-conventions


    I think this is a good first issue if you want to get started with contributing to open source :)

  4. TkDodo added labelsgood first issue

  5. Wow thanks...I ll look into on Monday...

    Le jeu. 15 avr. 2021 à 09:58, Dominik Dorfmeister @.***> a écrit :

    okay, no worries. So the way open source works is that everyone can contribute. To do that, you need to fork the repository to your own account (top right button in github), then create a branch. You can then implement the fix, in this case it's just adding that dependency to package.json in the example. After that, you can make a PR (pull request) from your branch to this repository - just go to the Pull Requests tab here and click on New Pull Request.

    make sure to adhere to the commit message convention, you can read about it here: https://github.com/tannerlinsley/react-query/blob/master/CONTRIBUTING.md#commit-message-conventions


    I think this is a good first issue if you want to get started with contributing to open source :)

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-query/issues/2122#issuecomment-820209032>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APLLEUXBFK3AIWYRKVQW23LTI2MBVANCNFSM425TBCNQ> .

  6. hey, for some reason the CodeSandbox example is now entirely missing from the Next.js example page.

  7. Not sure what you mean - it’s still here: https://react-query.tanstack.com/examples/nextjs

  8. yeah, now it's there. sorry for a false ping then. 12 hours ago the CodeSandbox threw an error that said that the example did not exist...

  9. TkDodo closed this

  10. :tada: This issue has been resolved in version 3.16.1 :tada:

    The release is available on:

    Your semantic-release bot :package::rocket:

  11. tannerlinsley added labelsreleased

Sign in to join this conversation.