Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

SvelteKit (Vite) POST request resulting in "Function not found..." response message.

Abierto
#4,873 10 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
vite
Área
cli

Línea de trabajo

Comienza reproduciendo la solicitud POST contra un endpoint de SvelteKit que define manejadores GET y POST, utilizando la configuración proporcionada de netlify-cli y npm run build. Compara el resultado con la ejecución directa de SvelteKit; se considera hecho cuando la solicitud POST devuelve la respuesta del endpoint en lugar de "Function not found...".

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: frameworks area: functions more info needed type: bug

UPDATED: After the original issue disappeared with a netlify update, the issue recently reappeared. See the comments below for details. I have provided a minimal recreation in the comments.

Describe the bug

I am using SvelteKit in my project. My site seems to work well for all GET requests including those that leverage endpoints. However, I have one endpoint that has handlers for both GET and POST requests. The GET request works fine, however when I submit a POST request to that same endpoint, I get the text response message "Function not found...".

This is not a problem I run into when running SvelteKit directly instead of through netlify-cli.

I verified that the corresponding .netlify/server/entries/endpoints file has both GET and POST functions.

Any suggestions for things to try? If this is a head-scratcher, I'll move forward with creating a test project that reproduces the issue.

Steps to reproduce

Submit a POST request to an enpoint that defines both GET and POST handlers.

Configuration
[build]
command = "npm run build"
publish = "dist" 

[dev]
  command = "npm run dev -- --host" 
  targetPort = 5173 
  port = 9090 
  autoLaunch = false
  functionsPort = 9091
Environment
  System:
    OS: Linux 5.15 KDE neon 5.25
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 9.52 GB / 15.35 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 17.6.0 - ~/apps/nodejs/node-current/bin/node
    Yarn: 1.22.17 - ~/apps/nodejs/node-current/bin/yarn
    npm: 8.5.2 - ~/apps/nodejs/node-current/bin/npm
  npmGlobalPackages:
    netlify-cli: 10.5.1
Lenguaje dominante
TypeScript
Estrellas
1.9k
Forks
478
Merge medio
1 d 18 h
PR fusionados (30 d)
37

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de netlify/cli

Todos los issues de netlify/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.