Answer Jsonformatter.org is a lightweight tool which is quite handy when it comes to working with sending postman requests and putting objects to Kafka topics. Another such site is editor.swagger.io which makes reading/designing APIs a lot easier and understandable. Use Postman to test APIs. Use k9s to work with your Kubernetes clusters.
Answer Auth tokens come with an expire period after which you will have to refresh it by hitting the oauth2 APIs.
If you don’t want to refresh auth now and again you can port-forward services and get the same result. There are a couple of things to keep in mind though.
- 1.As there are many services to port forward, you must not mix up port numbers while port forwarding.
- 2.Port forwarding by-passes the zuul api gateway, hence in this case, when accessing a service directly, for a request to be valid, a user has to send the userInfo JSON inside the RequestInfo object.
You can disconnect the forwarded port and start port forwarding again with recheck on port numbers. If this doesn’t solve the error, in some cases like adding mdms configuration, you can restart the pod to get the desired output.