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

next-js-course/next-05/app/[searchTerm] #3

Open
HadeedTariq opened this issue Jun 15, 2023 · 2 comments
Open

next-js-course/next-05/app/[searchTerm] #3

HadeedTariq opened this issue Jun 15, 2023 · 2 comments

Comments

@HadeedTariq
Copy link

my code is not working how ever i copy the same code but whenever I request to the api the data is not coming

@webdevheet
Copy link

Please share your error message!

@MontyWilliams
Copy link

Here is my error:

Failed to set fetch cache https://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=ok&gsrlimit=20&prop=pageimages%7Cextracts&exchars=100&exintro=true&explaintext=true&exlimit=max&format=json&origin=* TypeError: cookies is not iterable
at get [headers map sorted] (node:internal/deps/undici/undici:1844:34)
at node:internal/deps/undici/undici:1865:43
at Headers Iterator.next (node:internal/deps/undici/undici:1108:26)
at Function.fromEntries ()
at /home/monty/nextjstutorial2/next05/node_modules/next/dist/server/lib/patch-fetch.js:135:49
error - TypeError: cookies is not iterable
error - TypeError: cookies is not iterable
digest: "3550467805"
Failed to set fetch cache https://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=favicon.ico&gsrlimit=20&prop=pageimages%7Cextracts&exchars=100&exintro=true&explaintext=true&exlimit=max&format=json&origin=* TypeError: cookies is not iterable
at get [headers map sorted] (node:internal/deps/undici/undici:1844:34)
at node:internal/deps/undici/undici:1865:43
at Headers Iterator.next (node:internal/deps/undici/undici:1108:26)
at Function.fromEntries ()
at /home/monty/nextjstutorial2/next05/node_modules/next/dist/server/lib/patch-fetch.js:135:49
error - TypeError: cookies is not iterable
error - TypeError: cookies is not iterable
digest: "3550467805"

The request is actually being made and I do get the data returned so Im sure that this must be a typescript issue

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

3 participants