r/GoogleAppsScript • u/ThisUsernamePassword • Sep 23 '20
Question High number of URLFetchApp Unexpected Errors
Anyone else having unusually high number of occurrences of "Unexpected Error" from URLFetchApp.fetch() over the past couple weeks? Still works like 95+% of the time, but bugs out randomly.
This is from scripts that have been running fine for years and seemingly affects any URL used.
2
u/gsm12 Sep 23 '20
Yes! Exactly the same issue on most of my scripts having urlfetch.
Ive tried everything I could think of but no changes.
These were scripts that had been running fine for the last year or so.
Really hoping to find a solution as the number of emails I'm receiving is driving me nuts.
2
u/Niccke Dec 10 '20
It turned to hell for me yesterday. All my URLFetchApps broken... My little one person start up is quite dependent on them... :D Anyone that have a work around?
1
1
u/iquincy0cha Dec 10 '20
This is where I'm at. It started with the 'buttons' on all my sheets would no longer work, but they would work from editor. Now, they don't work at all. I tried the 'turn V8 on/off' suggestion and that didn't work either.
1
u/fdediego Dec 13 '20
Try to rename your files by removing the extension. It made it work again in my case.
1
1
u/morrisjr1989 Sep 23 '20
Mine have failed more than normal, but not an intolerable amount. Usually the next run will work, so not a consistent failure in fetching from an API.
1
u/Bitru Sep 24 '20
I ran into the same issue a few weeks ago: Its actually an unresolved error since 2013: https://issuetracker.google.com/issues/36760920
1
1
u/takishan Sep 23 '20
Yeah Google's been having trouble recently for some reason. Sometimes I just have to keep re-running scripts until they work. Which is frustrating, especially when nothing shows up under "my executions"
Starting to think investing time into GAS is a waste. Might as well use a heroku with node or something, although you lose all the convenient sheet / docs / email methods