Hegghammer / daiR

R package for Google Document AI
https://dair.info/
Other
41 stars 4 forks source link

Long timeout #1

Closed brancengregory closed 3 years ago

brancengregory commented 3 years ago

When a Processor ID is entered incorrectly to environment variable, if you submit a request using dai_sync the request will hang, with no timeout

Hegghammer commented 3 years ago

Thanks for letting me know! Can I just clarify what you mean by "incorrectly" - do you mean a processor ID that is incorrectly formatted (e.g. with a space in the middle) or one that is correctly formatted but not associated with the user?

brancengregory commented 3 years ago

Sorry for the slow response. My comment regards your second statement: one that is correctly formatted but not associated with the user. Thanks

Hegghammer commented 3 years ago

Ok, I see. I'll see if I can put in a kill switch or something.

brancengregory commented 3 years ago

Thank you for all your work!

Hegghammer commented 3 years ago

I am unable to replicate the error. When I submit a dai_sync() request with a fictional proc_id ("1234567890123456") - whether supplied directly as a parameter or via an environmental variable - I get the following error message after about 5 seconds: "File submitted at

brancengregory commented 3 years ago

Hmm okay. It has been a while since I was experiencing it, and don't have time to reproduce on my end. If I run in to the issue again I will document what happens better. We can close this for now. Thanks so much