-
Notifications
You must be signed in to change notification settings - Fork 94
Hyper client vs lazy Hyper client issue #82
Comments
can you also add the output? not sure if the lazy also populates |
The telegram JSON error is
|
I resized my image to be 1px x 1px and the 'lazy' method worked, could it be that the lazy method isn't handling larger files correctly? Perhaps the following line?
|
This could be the same issue as #81 |
The buffer threshold is definitely causing this. |
Admittedly, that codepath has not been very well tested. I'm open to suggestions, otherwise I'll try to see if I can reproduce the problem at least. I imagine |
I am not aware of the purpose of the buffer threshold (I haven't looked at it in any great detail) but if that is to remain, does it need to be configurable when sending a request? To get around this issue for the moment, I have created a fork that allows for a threshold value to be configured when sending a request. |
You can use |
Yes, my change is to use |
If the code was working correctly, the size of the buffer shouldn't matter. |
Publishing |
I have the following 'lazy' code:
which returns a 400 error.
And the following 'non-lazy' code:
which works fine.
So what am I doing wrong with the 'lazy' version?
The text was updated successfully, but these errors were encountered: