Hello everyone,
I am encountering the following error in my application and have not been able to identify its source:
Too many redirects
[ErrorScreen] Too many redirects
Has anyone experienced this issue before or can provide guidance on how to resolve it? Any assistance would be greatly appreciated.
Thank you in advance for your support.
Hi Vijay,
Without taking a look at the application or understanding its flow, you'll only get very general advice.
I've seen this happen often with permissions: page X requires a specific permission that the current user does not possess, the user is redirected to page Y (that also requires specific permissions) because of the Security Exception, the user is once again redirected, and is then stuck in a loop.
Have you tried debugging your app?
I encountered this issue before and the reason is the redirection stuck in a infinity loop between 2 screens.
Hi Please refer the below post, i hope it would help to resolve this issue
https://www.outsystems.com/forums/discussion/62900/force-https-err-too-many-redirects/
https://www.outsystems.com/forums/discussion/68181/too-many-automatic-redirections-were-attempted/
it would be hard to know without details, why this is happening with you. Is it possible to share more details.
i got the same issue once , because of a loop between the screens.you may debug the code and check for the issue, also please go through the link this may help you.thanks.
Are you using SSO login in your application ?
Kindly share the full log from service center for better assistance and troubleshooting.
Hi Aravid,
Stack message mentioned below error I'm getting
Error: Too many redirects.
at Object.M [as navigateTo] (domain/application/scripts/OutSystems.js?+KEi4Um_ajmY14N9O2eCuw:7:20365)
at domain/application/scripts/application.Common.controller.js?rMX62PtaQS0HwVGpWYIbtA:76:42
at d (domain/application/scripts/OutSystems.js?+KEi4Um_ajmY14N9O2eCuw:2:19135)
Here domain/application mentioned like "personal.abc.outsystemcloud.com/Home"
I’ve had the same issue before. It was caused by an infinite loop in the code when fetching data from API. The requests kept repeating, which led to too many redirects.
I fixed it by adding a small delay between requests. This stopped the loop and allowed the app to work without any redirect issues.
Let me know if you need more info.
Can you share the full error log,
Are you using 3rd party API calls in the specified screens?
Is this happening in all screens?
It will be better if you provide the above information
Hello Vijay,
we have an open problem (RPM-6008) regarding this behavior, but OutSystems has set its status to “Investigation on hold”. It has something to do with how OutSystems handles the SecurityException. They also have a workaround for this, but they only seem to describe it if someone opens a ticket on the issue.
I would appreciate it if you could open a ticket for this issue so that it might be given higher priority. To be honest, I don't understand why workarounds for known issues are not generally documented publicly by OutSystems.
Hi Magnus,
I tried checking the above problem (RPM-6008), but I couldn’t find it. Could you please share the link.
Hi Vijay, this is the RPM that has been assigned to our support case. You can refer to it when you open a support case yourself, then your incident should be linked to this RPM. That's how the topic normally gets more priority by OutSystems.