upload api timesout when sending second request from same lambda #255

Closed
opened 2026-02-16 00:17:17 -05:00 by yindo · 6 comments
Owner

Originally created by @imukulmunjal on GitHub (Sep 5, 2024).

Originally assigned to: @BinaryBrain on GitHub.

upload api timesout when sending second request from same lambda

When processing multiple files I am using aws lambda to call https://api.cloud.llamaindex.ai/api/parsing/upload api and on every second request I get timeout error

Originally created by @imukulmunjal on GitHub (Sep 5, 2024). Originally assigned to: @BinaryBrain on GitHub. upload api timesout when sending second request from same lambda When processing multiple files I am using aws lambda to call https://api.cloud.llamaindex.ai/api/parsing/upload api and on every second request I get timeout error
yindo added the help wanted label 2026-02-16 00:17:17 -05:00
yindo closed this issue 2026-02-16 00:17:17 -05:00
Author
Owner

@BinaryBrain commented on GitHub (Sep 5, 2024):

Hi @imukulmunjal,
This is quite strange. Can you share your code so we can reproduce the issue?

@BinaryBrain commented on GitHub (Sep 5, 2024): Hi @imukulmunjal, This is quite strange. Can you share your code so we can reproduce the issue?
Author
Owner

@imukulmunjal commented on GitHub (Sep 6, 2024):

`const axiosLlamaConfig = {
      method: 'post',
      timeout: 50000,
      maxBodyLength: Infinity,
      url: 'https://api.cloud.llamaindex.ai/api/parsing/upload',
      headers: {
        accept: 'application/json',
        Authorization: `Bearer ${llamaCloudApiKey}`,
        ...data.getHeaders(),
      },
      data,
    };
    const fileReadResponse = await axios.request(axiosLlamaConfig);`
    
    
    

I am using this to upload document.

Error - You can see first run it worked fine and finished execution after 2057ms and second run with same pdf it gave timeout and this is happening everytime
Screenshot 2024-09-06 at 10 57 40 AM

@imukulmunjal commented on GitHub (Sep 6, 2024): ``` `const axiosLlamaConfig = { method: 'post', timeout: 50000, maxBodyLength: Infinity, url: 'https://api.cloud.llamaindex.ai/api/parsing/upload', headers: { accept: 'application/json', Authorization: `Bearer ${llamaCloudApiKey}`, ...data.getHeaders(), }, data, }; const fileReadResponse = await axios.request(axiosLlamaConfig);` ``` I am using this to upload document. Error - You can see first run it worked fine and finished execution after 2057ms and second run with same pdf it gave timeout and this is happening everytime <img width="1173" alt="Screenshot 2024-09-06 at 10 57 40 AM" src="https://github.com/user-attachments/assets/beebac49-e7a0-4951-97d1-b163b9d95081">
Author
Owner

@BinaryBrain commented on GitHub (Sep 6, 2024):

Can you give me the JobID of the 1st job that's successful and the 2nd one that's failing?
It would help me to debug it.

@BinaryBrain commented on GitHub (Sep 6, 2024): Can you give me the JobID of the 1st job that's successful and the 2nd one that's failing? It would help me to debug it.
Author
Owner

@imukulmunjal commented on GitHub (Sep 8, 2024):

Job Id - 6c87634f-defc-4d30-a87e-a7123bf331ff

This is the job that passed and after this there was timeout error

@imukulmunjal commented on GitHub (Sep 8, 2024): Job Id - 6c87634f-defc-4d30-a87e-a7123bf331ff This is the job that passed and after this there was timeout error
Author
Owner

@imukulmunjal commented on GitHub (Sep 11, 2024):

@BinaryBrain let me know if you need anything else, thanks

@imukulmunjal commented on GitHub (Sep 11, 2024): @BinaryBrain let me know if you need anything else, thanks
Author
Owner

@BinaryBrain commented on GitHub (Sep 13, 2024):

Hi, we just released a fix that may help with your issue.
Can you retry and tell me if everything's working now?

@BinaryBrain commented on GitHub (Sep 13, 2024): Hi, we just released a fix that may help with your issue. Can you retry and tell me if everything's working now?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#255