Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

[auth][error] UnknownAction: Only GET and POST requests are supported. #171

Description

@Dodje

Environment


  • Operating System: Linux
  • Node Version: v18.19.0
  • Nuxt Version: 3.11.1
  • CLI Version: 3.11.0
  • Nitro Version: 2.9.4
  • Package Manager: yarn@1.22.21
  • Builder: -
  • User Config: vue, components, alias, nitro, routeRules, css, modules, dayjs, i18n, runtimeConfig, vite, build, typescript
  • Runtime Modules: @pinia/nuxt@0.4.11, @nuxtjs/i18n@8.0.0-rc.5, dayjs-nuxt@2.1.9, @nuxt/test-utils/module@3.12.0, @hebilicious/authjs-nuxt@0.3.5
  • Build Modules: -

Reproduction

I appologize for no link due to hard work crunch I have..

Describe the bug

After nuxt update getting an error in console. My guess is that the method internalRequest is expecting some request from getRequestFromEvent, but this function is trying to use deprecated method.
image

Additional context

No response

Logs

 ERROR  [auth][error] UnknownAction: Only GET and POST requests are supported. .Read more at https://errors.authjs.dev#unknownaction


 ERROR      at toInternalRequest (file:///home/art/project/node_modules/@auth/core/lib/utils/web.js:19:19)
    at Auth (file:///home/art/project/node_modules/@auth/core/index.js:67:35)
    at Object.handler (/home/art/project/node_modules/@hebilicious/authjs-nuxt/dist/runtime/lib/server.mjs:23:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/art/project/node_modules/h3/dist/index.mjs:1962:19
    at async Object.callAsync (file:///home/art/project/node_modules/unctx/dist/index.mjs:72:16)
    at async Server.toNodeHandle (file:///home/art/project/node_modules/h3/dist/index.mjs:2249:7)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions