Forum Discussion
Adding timeout in WEB.CONTENTS to right place?
- Anonymous2 years ago
I figured it out. I had to remove the bracket in front of Headers. It is working now.
= Json.Document(Web.Contents("https://surveys-api.avius.com/api/v1/survey/133f8356-eb51-5968-b2b6-bf200d505401/Changes/0/5000",[Timeout=#duration(0, 1, 0, 0), Headers=[Authorization=#"BearerToken", Accept="text/plain"]]))
Hello Sir, the code you sent gives out a Expression.SyntaxError: Invalid identifier error. Please look into it and reply with the updated m code.
I figured it out. I had to remove the bracket in front of Headers. It is working now.
= Json.Document(Web.Contents("https://surveys-api.avius.com/api/v1/survey/133f8356-eb51-5968-b2b6-bf200d505401/Changes/0/5000",[Timeout=#duration(0, 1, 0, 0), Headers=[Authorization=#"BearerToken", Accept="text/plain"]]))