You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using a firebase callable function and would like to send the repsponse back to the client once the transaction is completed - instead of sending another post to a different URL. The only problem is that the APIOperationBase.execute does not return the response.
Is there a reason for this?
It would be much more efficient if I could do this...
` try {
Look at this stack overflow question. By definition all callback functions are async so you would have to force your code to wait for the promise to resolve to send it back to the user.
The problem is, if you're using an environment like gcp or firebase, you won't be able to change the auothorizenet npm package in the cloud to force the await for promise to resolve. Not sure what to tell you there. Fork off of this package? I'm curious what the contributors think. @sinayak@maria-simon@lilithmm
Your code attempt would cause a LOT of issues because you are assuming not one but two network connections are going to remain stable during the entire transaction. There is a reason why it's built async and with promises. Also your code looks like java instead of taking advantage of Promises ... You really need to rethink your design.
Hi, I'm using a firebase callable function and would like to send the repsponse back to the client once the transaction is completed - instead of sending another post to a different URL. The only problem is that the APIOperationBase.execute does not return the response.
Is there a reason for this?
It would be much more efficient if I could do this...
` try {
The text was updated successfully, but these errors were encountered: