Uncaught (in promise) when trying Get api

You say you get the error in Live. Do you get the same error in Preview?