Can not write to base after fetching error

Hi,

I am fetching some url’s to get their right URL (with www. or without www.).
When websites don’t have SSL/https, it runs in an error. I catch the error and that’s all fine.

Right after the fetch (and error handling); I want to update the database record with

await table.updateRecordAsync( record.id, {

‘Website’ = 'error

}

But this line crashes with an error message:

Error: request to https://88.86.101.150/ failed, reason: Hostname/IP does not match certificate’s altnames: Host: stranky1.cz. is not in the cert’s altnames: DNS:abstracts.cz, DNS:admin.abstracts.cz, DNS:www.abstracts.cz

(although I do not fetch the website again)

How can I update the table ?

Any idea?

Thanks for any support.