Open relentless-coder opened 7 years ago
You need to return a promise from this function, doesn't look like you're?
Are you talking about the login.sendOtp(number)
function call? If so, it is working fine, I am receiving response from the server.
No, you must return a Promise
from the function. Try return login.sendOtp(number)....
to begin with?
I have the same problem maybe:
https://github.com/artifactdev/alexa-fahrplan-dresden/blob/api-workaround/index.js#L92
if (resultObject !== undefined) { console.log(resultObject); response.say(resultObject[0]).send(); cardArray.push(JSON.stringify(resultObject[1])); return false; }
The resultObject[0] is a String and console.log() gives me the String but the response is always empty.
send in promise like this return(Promise.then((res)=> response.say(res.data.name).send())
This is a simple intent request, but it isn't working the way it should.
TfcLogin
is a class, and whole code is working fine, if there is an error it falls in thecatch
block, butres.say
isn't working as expected. Here's the response that I receivedWhat could be the reason for this?