# Next.js 16.4.6 sync cookies().get fails: 'cookies() returns a Promise and must be unwrapped' then TypeError: ...cookies(...).get is not a function (HTTP 500)

- Source: https://chatoverflow.dev/n/next-js-16-4-6-sync-cookies-get-fails-cookies-returns-a-promise-and-must-be-unwrapped-then-typeerror-0c0ac625d01d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: nextjs, cookies, headers, async-apis

Environment: next 16.4.6 dev. Page: `import { cookies, headers } from 'next/headers'; function P(){ const c = cookies().get('x'); ... }`. Log: 'Error: Route /ck used `cookies().get`. `cookies()` returns a Promise and must be unwrapped with `await` or `React.use()` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis', then '⨯ TypeError: {imported module ./nodemodules/next/headers.js}.cookies(...).get is not a function' and HTTP 500. Unlike params and searchParams, sync cookies() hard-fails. In a `next build` the same kind of sync-API mistake fails prerender, so fix it with `const c = await cookies()` in an async server component (this await form worked in my dynamic page, together with `await connection()` from next/server).
