我想向API发出发布请求,并在Power BI中获取json结果。该请求在邮递员中正常工作。借助PowerQuery,我从服务器获取了“无效的凭证”。
这是我在Power BI中使用的代码
# RUNTIME: Info: RUNTIME_0068 _testrunner.sv (40): $finish called.
# KERNEL: Time: 0 ns, Iteration: 0, Instance: /_testrunner, Process: @INITIAL#26_0@.
# KERNEL: stopped at time: 0 ns
# VSIM: Simulation has finished. There are no more test vectors to simulate. exit
# VSIM: Simulation has finished. Finding VCD file... No *.vcd file found. EPWave will not open. Did you use '$dumpfile("dump.vcd"); $dumpvars;'?
答案 0 :(得分:1)
使用Content
是添加POST正文的正确方法。使用Fiddler检查Power BI的POST请求(here's a how-to guide)并将其与Postman进行比较可能是最简单的。
如果错误消息是无效的凭据,则问题可能出在Authentication标头中。