I am trying to create a spring boot azure function using the following guide
https://github.com/eggboy/springcloud-azurefunction/tree/springboot3
I was able to successfully build and run the azure function on local.
but when I try to deploy and trigger the http endpoint, I am getting following error with 500 error.
Could someone help understand what is going wrong here.
<code>2024-06-14T23:11:24Z [Information] Executing 'Functions.getUserFunction' (Reason='This function was programmatically called via the host APIs.', Id=d0c22346-387d-41af-9c0a-326429dd97f1)
2024-06-14T23:11:24Z [Verbose] Sending invocation id: 'd0c22346-387d-41af-9c0a-326429dd97f1
2024-06-14T23:11:24Z [Verbose] Posting invocation id:d0c22346-387d-41af-9c0a-326429dd97f1 on workerId:18a329dc-7f2e-4e0b-8487-c67d912b9eea
2024-06-14T23:11:24Z [Error] Executed 'Functions.getUserFunction' (Failed, Id=d0c22346-387d-41af-9c0a-326429dd97f1, Duration=11ms)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Checking worker statuses (Count=1)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Worker status: ID=18a329dc-7f2e-4e0b-8487-c67d912b9eea, Latency=4ms
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 68): History=(0,0,0,0,0), AvgCpuLoad=0, MaxCpuLoad=0
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 26): History=(2,4,3,2,3), AvgCpuLoad=3, MaxCpuLoad=4
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host aggregate CPU load 3
2024-06-14T23:11:37Z [Information] Executing StatusCodeResult, setting HTTP status code 200
<code>2024-06-14T23:11:24Z [Information] Executing 'Functions.getUserFunction' (Reason='This function was programmatically called via the host APIs.', Id=d0c22346-387d-41af-9c0a-326429dd97f1)
2024-06-14T23:11:24Z [Verbose] Sending invocation id: 'd0c22346-387d-41af-9c0a-326429dd97f1
2024-06-14T23:11:24Z [Verbose] Posting invocation id:d0c22346-387d-41af-9c0a-326429dd97f1 on workerId:18a329dc-7f2e-4e0b-8487-c67d912b9eea
2024-06-14T23:11:24Z [Error] Executed 'Functions.getUserFunction' (Failed, Id=d0c22346-387d-41af-9c0a-326429dd97f1, Duration=11ms)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Checking worker statuses (Count=1)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Worker status: ID=18a329dc-7f2e-4e0b-8487-c67d912b9eea, Latency=4ms
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 68): History=(0,0,0,0,0), AvgCpuLoad=0, MaxCpuLoad=0
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 26): History=(2,4,3,2,3), AvgCpuLoad=3, MaxCpuLoad=4
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host aggregate CPU load 3
2024-06-14T23:11:37Z [Information] Executing StatusCodeResult, setting HTTP status code 200
</code>
2024-06-14T23:11:24Z [Information] Executing 'Functions.getUserFunction' (Reason='This function was programmatically called via the host APIs.', Id=d0c22346-387d-41af-9c0a-326429dd97f1)
2024-06-14T23:11:24Z [Verbose] Sending invocation id: 'd0c22346-387d-41af-9c0a-326429dd97f1
2024-06-14T23:11:24Z [Verbose] Posting invocation id:d0c22346-387d-41af-9c0a-326429dd97f1 on workerId:18a329dc-7f2e-4e0b-8487-c67d912b9eea
2024-06-14T23:11:24Z [Error] Executed 'Functions.getUserFunction' (Failed, Id=d0c22346-387d-41af-9c0a-326429dd97f1, Duration=11ms)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Checking worker statuses (Count=1)
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Worker status: ID=18a329dc-7f2e-4e0b-8487-c67d912b9eea, Latency=4ms
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 68): History=(0,0,0,0,0), AvgCpuLoad=0, MaxCpuLoad=0
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host process CPU stats (PID 26): History=(2,4,3,2,3), AvgCpuLoad=3, MaxCpuLoad=4
2024-06-14T23:11:37Z [Verbose] [HostMonitor] Host aggregate CPU load 3
2024-06-14T23:11:37Z [Information] Executing StatusCodeResult, setting HTTP status code 200
I am expecting successful return HTTP 200 response by the azure http trigger