Skip to main content
renekreijveld
May 8, 2024

No or very slow API replies from REST API

  • May 8, 2024
  • 11 replies
  • 179 views

I am the developer of an application where we want to show pages from Lucidchart documents into our application. I want to show them by exporting each page as a jpeg file into our application. I created an OAuth 2.0 client and I can get and update a token without a problem. My application is written in PHP.
 

To add the pages our users first search for Lucid chart documents. I use the Search document endpoint for that (https://api.lucid.co/documents/search). I then display the search results where the user can pick a Lucidchart document.

Then, I use the Document Contents endpoint (https://api.lucid.co/documents/:id/contents) to retrieve what pages are in the document. I then loop over these pages to export each page to a jpg image with the Export Document endpoint (https://api.lucid.co/documents/:id?pageId=xxx).

The problems I have, is that many times, the API simply doesn’t answer and times out. I almost never get an error message back from the API. I do sometimes I get a curl error 0 with an error message “SSL connection timeout”.

Am I doing something wrong here? I don’t request that many pages, this is usually less than 10. I think the rate limit shouldn’t be the issue here. Or is it?

Comments

Lucid product team
May 17, 2024

Great, thank you for the addition information. We will let you know when we find any answers.