
API model problem: time out on calling api URL
Hello,
I want to import data from a model in another application through JSON. I use the api url mentioned below:
https://<name application>.bettyblocks.com/api/models/casus/records/
In the other application I get an time out error. We set the timeout to 10 minutes and even then we get the same error. The time out seems to disappear when I limit the set to 4000 rows in the URL.
The model contains around 10000 rows.
I learned from Betty blocks-support that this is to much to just call through the above URL.
Support suggested to create an endpoint with an action described below.
https://docs.bettyblocks.com/en/articles/2576494-howto-create-efficient-actions-using-batches
I followed these steps. The loop works, but the example does not show how to create the json data within the batches.
Can anyone help me? Am I on the right path?
Thank you!
Hello,
I want to import data from a model in another application through JSON. I use the api url mentioned below:
https://<name application>.bettyblocks.com/api/models/casus/records/
In the other application I get an time out error. We set the timeout to 10 minutes and even then we get the same error. The time out seems to disappear when I limit the set to 4000 rows in the URL.
The model contains around 10000 rows.
I learned from Betty blocks-support that this is to much to just call through the above URL.
Support suggested to create an endpoint with an action described below.
https://docs.bettyblocks.com/en/articles/2576494-howto-create-efficient-actions-using-batches
I followed these steps. The loop works, but the example does not show how to create the json data within the batches.
Can anyone help me? Am I on the right path?
Thank you!
Login to reply