Stack AI call was working fine yesterday?
# 🤝help
b
CODE: "// Add your stack AI endpoint URL in place of "YOUR_STACK_AI_ENDPOINT_URL" const endpoint = "YOUR_STACK_AI_ENDPOINT_URL" // Add your stack AI API key in place of "YOUR_API_KEY_HERE" const headers = { Authorization:
Bearer YOUR_API_KEY_HERE
, "Content-Type": "application/json" } const data = { "in-0": workflow.question, } try { const response = await axios.post(endpoint, data, { headers }) workflow.apiResponse = response.data["out-0"] } catch (error) { throw new Error(
stack-error: ${error}
) }" ERROR: " [SyntaxError, Arg string terminates parameters early]"
a
Does anyone who uses Stack.Ai also have this issue? Perhaps they changed the API
h
it works as it used to for me, check typos or redeploy on Stack AI and recheck everything again
b
I have tried with both flowise and Stack AI.
17 Views