Getting 414 Error on API Request with python.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 02:27 PM - edited 02-29-2024 02:34 PM
Hello,
my var is the following:
url = f"https://<company_url>.service-now.com/api/now/table/cmdb_ci?sysparm_query=ip_addressIN{dedup_ips}&sysparm_suppress_pagination_header=false&sysparm_fields=name%2Csys_class_name%2Cip_address&sysparm_limit=10000"
When adding the content from dedup_ips, the length of the url is above 10,000 characters.
It is not an option to reduce IPs, I need all of them.
How I can solve this issue? I noticed that when using long queries in tables, servicenow modify the query and make it shorter. What about API Requests? do we have something to make URL short and retrieve the data?
How I can solve this issue? I noticed that when using long queries in tables, servicenow modify the query and make it shorter. What about API Requests? do we have something to make URL short and retrieve the data?
0 REPLIES 0