Skip to content

ArtemHoruzhenko/nestjs-serve-static-bug-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nestjs-serve-static-bug-repro

install deps

npm install

run server

npm run start:dev

run curl to make sure endpoint exists (should return 200)

curl -X POST 'http://localhost:3000/api/test' \
  -H 'Content-Type: application/json' \
  --data-raw '{"v":1}'

run curl with more payload expected to fail with 413 but fails with 404 {"message":"Cannot POST /api/test","error":"Not Found","statusCode":404}

curl -X POST 'http://localhost:3000/api/test' \
  -H 'Content-Type: application/json' \
  --data-raw '{"v":1234567890}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published