API encounters 400 error in 1 Kubernetes Pod and responds with "Unrecognized configuration"
P粉976488015
P粉976488015 2024-01-10 18:22:17
0
1
566

I used the proxy-middleware package to rewrite the path of the actual API URL in the Nodejs file to /api/events/restservices/api/disaster/v1/events > in order to hide the actual url , instead of using lgw with a different environment to call the api, we use the CDP GRM edge URL to make the call, just like we call actual- instead of actual lgw/api/events grm-url/api/ events. Problem - When deployed, a Pod responds with data from its request URL - "grm-edge-url/api/events", where grm-edge-url has podnumber:portnumber; and it fails with a response of 400 bad request, the body response is "Unrecognized configuration" and its request URL - similar to other requests with a different podnumber:portnumber.

Testing in postman - real URL and grm edge URL - gives response but another pod gives 400 error.

P粉976488015
P粉976488015

reply all(1)
P粉670838735

If you encounter a 400 error in a Kubernetes Pod with the response "Unrecognized Configuration", here are some steps you can take to resolve the issue:

Double check the API configuration for any errors or missing parameters. Use kubectl logs to view the logs of the problematic pod to gather more information. Check the API server logs for any relevant error messages or misconfigurations. Verify network connectivity and ensure there are no DNS or firewall issues. Compare the configuration of the problematic Pod to other Pods in the same deployment. Try updating or restarting the pod to resolve any inconsistencies. Please see the API documentation or support for specific troubleshooting steps. If you need more specific help, please provide additional details.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!