Forum Discussion
artikrh
3 years agoNew Member
POST requests in M Language without any parameters
Hi, I have this REST API endpoint which expect a HTTP POST request in order to download a CSV file. However, the issue with PBI here is that this POST request does not have/expect any parameter a...
Anonymous
3 years agoNot applicable
Hi artikrh ,
Are you trying to connect to one REST API? If yes, could you please provide the related REST API info? And the following is the thread which has the similar problem as yours, hope it can also help you solve the problem.
DataFormat.Error: We found extra characters at the end of JSON input
It should be #"Authorization" in Headers
let Source = Json.Document(Web.Contents("xxx", [ RelativePath = "xxx", Content=Text.ToBinary(""), Headers=[#"Content-Type"="application/json", #"Authorization"="Bearer xxx" ] ])) in Source
Best Regards