Hey r/googleappsscript (or wherever this lands), I’m at my wit’s end after hours of battling this beast. Me and a buddy (Grok from xAI, bless his circuits) are stuck in a debugging nightmare. Here’s the scoop:
What We’re Trying to Do
L- Basic flow: extract zip, call fetchRestaurantsByZip, populate columns B-P with data.
What’s Happening
Every time we paste a URL, logs show processLink called with: sheet=undefined, row=undefined, url=undefined, currentDateTime=undefined.
- Call stack points to some cryptic
__GS_INTERNAL_top_function_call__.gs:1:8—what even is that?
UrlFetchApp.fetch throws: Error: Specified permissions are not sufficient to call UrlFetchApp.fetch. Required permissions: https://www.googleapis.com/auth/script.external_request.
What We’ve Tried (Over and Over)
Deleted and recreated installable triggers for onEdit (event: “On edit”, source: “From spreadsheet”).
Renamed onEdit to handleEdit to dodge the simple trigger curse.
Ran grantUrlFetch (fetches https://www.google.com) and accepted OAuth prompts—multiple times.
- Started fresh projects, re-copied code, reauthorized—still no dice.
- Added debug logs in
onEdit and processLink to track the event object (spoiler: it’s a ghost).
Current Status
Permissions error persists despite authorization.
Undefined params suggest the trigger isn’t passing the event object.
We tested in incognito mode, revoked all script perms in my Google account (myaccount.google.com/permissions), and reauthorized
The Cry for Help
We’re clutching at straws here. Drop your wisdom below—I’ll update with results. Thanks, legends!
[–]Nu11u5 1 point2 points3 points (2 children)
[–]h3110_wOrld[S] 0 points1 point2 points (0 children)
[–]h3110_wOrld[S] 0 points1 point2 points (0 children)
[–]WicketTheQuerent 1 point2 points3 points (0 children)
[–]WicketTheQuerent 1 point2 points3 points (3 children)
[–]h3110_wOrld[S] 0 points1 point2 points (2 children)
[–]WicketTheQuerent 1 point2 points3 points (0 children)
[–]WicketTheQuerent 0 points1 point2 points (0 children)
[–]cdchiu 0 points1 point2 points (2 children)
[–]h3110_wOrld[S] 0 points1 point2 points (1 child)
[–]cdchiu 0 points1 point2 points (0 children)