bradjasper / ImportJSON

Import JSON into Google Sheets, this library adds various ImportJSON functions to your spreadsheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returning no reference, might be error with JSON parsing?

karmayoga-online opened this issue · comments

Hi there, I'm trying to use this and it's returning errors. I made a separate .gs file and used URLFetchApp to pull in JSON data successfully using basic auth, but the same process did not work here. I couldn't find the error in the code exactly.

Error message says: "exceeded maximum execution time (line 0)"

image

When I reduced the query parameter to less data, one day vs. one month, after saying "Loading ...", I received this error below saying "Reference does not exist."

image

Fixed! I mistook query for the "?month=2021-04" parameter, this fixed it below:

=ImportJSONBasicAuth("https://acuityscheduling.com/api/v1/availability/classes?day=2021-03-21", USER_ID,API_KEY, "", "noInherit, noTruncate, rawHeaders")