Skip to content

reaperc9000/scf-issue-686-function-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to replicate the issue

  1. Run ./mvnw spring-boot:run. This should start the app as a spring boot app and the functions will be available as a REST endpoint

  2. Test the save function without function routing

curl -XPOST 'http://localhost:8080/save' \
-H 'Content-Type: application/json' \
-d '[
    {
    "id": "isddsddwqdcZC",
    "name": "save",
    "data": "blah blah"
    }
]'

This should return the response as below and HTTP 200

{
    "status": "SUCCESS",
    "ids": [
        "isddsddwqdcZC"
    ]
}
  1. Test the function router
curl -X POST 'http://localhost:8080/functionRouter' \
-H'spring.cloud.function.definition: save' \
-H'Content-Type: application/json' \
-d'[
    {
    "id": "isddsddwqdcZC",
    "name": "save",
    "data": "blah blah"
    }
]'

This request will throw an exception and you can see the stack trace as reported in spring-cloud/spring-cloud-function#686

About

simple project replicating function routing error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages