I’m having a problem with a recursive call to an API.
The purpose of this API is to allow users to retrieve lists of companies using filters such as sector of activity, region, etc.
The documentation is available here:
https://recherche-entreprises.api.gouv.fr/docs/
My script makes a standard call
Code: Select all
put URL tURL into tRawDataCode: Select all
https://recherche-entreprises.api.gouv.fr/search?region=75&activite_principale=46.90Z&page=1&per_page=10Using a standard “REPEAT” function, I increment the “page=” argument by 1 each time until I get an empty page, which stops the script.
Everything works fine, except when the number of pages is large (in my case, 128), when I get the following error message:
The handler: ulGetFormat has reached the recursion limit of: 400000.
Execution will be terminated to prevent a hang
My problem is that I don’t have this handler in my code.
My debugging tests confirm that the error occurs during the 128th “put URL tURL” call.
Can anyone help me understand this?
