#community-help

Issues with Adding 7mb json File on Typesense .23

TLDR Jesse experienced timeouts when trying to add a jumbo JSON file, despite sufficient nginx upload size. Jason advised extending the client-side timeout on Typesense. Later, Jesse found their developer has set connection timeout to 2 seconds.

Powered by Struct AI

3

1

1

Jun 06, 2022 (19 months ago)
Jesse
Photo of md5-8ac455f6d302407f03def4c775778b28
Jesse
07:10 PM
On the newly released .23, I’m trying to add a 7mb json file, but it’s timing out on me. Our max upload size in nginx is set to something absurd (32 or 64mb). Any other ideas of where to begin poking around?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:11 PM
Are you using one of our client libraries?
Jesse
Photo of md5-8ac455f6d302407f03def4c775778b28
Jesse
07:12 PM
Yes, the python library.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:13 PM
Then it's most likely the client-side timeout kicking in. Imports are synchronous in Typesense, so you want to increase the timeout to say 5 minutes or more on the client instance you're using to do the import.

1

Jesse
Photo of md5-8ac455f6d302407f03def4c775778b28
Jesse
07:24 PM
Will play around, many thanks. PS: Me and my team’s loving TS so far.

2

1

07:56
Jesse
07:56 PM
After careful code review I realized my developer had ‘connection_timeout_seconds’: 2.

1