0

I have an Azure Function which is writing to a storage table; the call completes successfully and responds with:

context.res { 
   result: 200, body: {}
}
return;

My Azure web app makes the call as

await axios.post(....)

The post call never completes, even though the Azure Function exits and responds. At the end I get

504.0 GatewayTimeout

1 Answer 1

0

Apparently below is what needed. Just setting context.res is not enough, empty return is not enough.

return { 
   status: 200, body: {}
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.