Server redirected too many times (20)

0
We have a Mendix app with a custom Java action that performs REST Calls to send data to an external system. The REST calls are executed without errors when running the app locally in Studio Pro. When running the app in the Mendix Cloud, we encounter an error message “server redirects too many times” when sending the PUT-requests. The REST Call performs NTLM-authentication to get access to the API. We have no clue where these redirects are coming from.   21:50:30 APP ERROR Connector: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.net.ProtocolException: Server redirected too many times (20)
asked
2 answers
0

That looks more like a stack overflow question: https://stackoverflow.com/questions/18838229/java-net-protocolexception-server-redirected-too-many-times-20

Regards,

Ronald

 

answered
0

Are you able to try making a REST call from a Call REST action in a microflow to the endpoint you are having trouble with. Does it work then?

If this works, you could refactor your Java action to generate the body content as a String and return this to a calling microflow. You could then pass this String into the Call REST action.

Just an idea, but it may work. Good luck!

answered