Custom API (CCS for chatbot) randomly returns 200, 404 or 500
SummaryCustom API, a custom component service for chatbots, randomly returns 200, 404, 500
I'm currently working on some chatbot projects with two other people. In total we have five CCS APIs, three of which work fine. The other two return 200 most of the time, however, from time to time, they return 500 or 404. The two APIs seem to be both working and not working.
I also tried to adapt a working implementation, but that one also returns 200 most of the time and 500s and 404s at random times.
The error we get, when the CCS returns a 500, can be found in the code snippet. I also included a zipfile of the custom components implementation.