What is the Character Limit of URL in the Qlik Sense REST connector UI connection

Current scenario, I am passing a query through the URL to fetch the data from a CRM product via API calls.

When I give the lengthy URL in the UI Data connection as the below image. I am getting an error as Request invalid.

Currently I am using the same URL in the script instead of UI data connection and it is working fine.

I was just curious to know is there a LIMIT of characters for URL in UI REST connection Qlik Sense and the reason for the error and if the UI connection works fine, I can easily get the auto generated script instead of writing it in the script manually.