Hello @Ramji R - Thanks for reaching out. The bindings look OK, and the function signature and the return also look OK to me. However, I do have the following questions for you which might help troubleshoot the root cause:
- Does the lazyloading
const contentful = require("contentful-management");inside the function (instead of being at the top) work as intended and the client object is created successfully? Note that
require()is a synchronous call and can block the rest of the execution.
- Do you get any explicit error messages when pulling a Diagnostics report?
- If you suspect that the issue is within the code, could you try to reproduce & debug locally?
- If the issue occurs only on Azure, could you configure a Profiler through Application Insights and see if it provides any insights?
Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.