Invalid URL error

Invalid URL error on workers when trying to post a data to Amazon S3. Here is my code:
https://github.com/arunvl88/area1-alerts/blob/master/index.js

Here is the error message:

{
"outcome": "exception",
"scriptName": "area1-alerts",
"exceptions": [
{
"name": "TypeError",
"message": "Invalid URL string.",
"timestamp": 1687568434902
}
],

Can someone help?
GitHub
Contribute to arunvl88/area1-alerts development by creating an account on GitHub.
area1-alerts/index.js at master · arunvl88/area1-alerts
Was this page helpful?