[FIXED] anvil.http.HttpRequestFailed: SSL error: Insufficient buffer remaining for AEAD cipher fragment

Hi
I have a scheduled background task that in the line

  response = anvil.http.request(csv_url)

This line retrieves a Google Sheet in CSV format.
Now, it gives the error:

anvil.http.HttpRequestFailed: SSL error: Insufficient buffer remaining for AEAD cipher fragment (2). Needs to be more than or equal to IV size (8) + tag size (16)

The same exact code worked until Wed 23 Sep 2020, 09:00 - first KO on scheduled task log.
Then kept failing.
I tried googling but couldnt find a clue about how to investigate this kind of error.

Thanks and BR

Hi @aldo.ercolani,

Do you have a clone link you could share so that we can take a look for you?

Thanks :slight_smile:

Hi @bridget
it took me some time to cook up a reduced version to clone. Here it is.
https://anvil.works/build#clone:A4O7H6IHA7EFFRY2=VVBRAJJUCHS3TTHPI6KYEEFY

You can trigger the error either by waiting the scheduled task to run, or by clicking the RELOAD button on the RELOAD form.

The sheets that is read is this.
And this is the link in the HTTP request that should get the CSV.

Thanks for your help

Hi Anvil Central
I see now the errors don’t occur anymore.
I don’t know if you’ve made something or not, but all runs smoothly again since Fri 25 Sep 2020, 13:01

Thanks

Hi @aldo.ercolani,

Yes, this was a bug which has now been fixed :slight_smile:

1 Like

Good to know. I am also facing the same problem. Could you please share what causes this bug ? Thanks.