Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi! - I'm trying to conect a Post API, but returns the error: "DataSource.Error: Falha no Web.Contents ao obter conteúdo ' https://api.hinova.com.br/api/sga/v2/listar/boletoassociado/ periodo ' (404): Página não encontrada
Detalhes:
DataSourceKind=Web
DataSourcePath= https://api.hinova.com.br/api/sga/v2/listar/boleto-associado/periodo
Url= https://api.hinova .com.br/api/sga/v2/listar/boleto-associado/periodo "
When I do the same thing with a Get API works.
At Postman works the get and the post, only the post at power bi don't.
If someone can help me, please 😞
I tried change my requision of many forms, but without sucess too.
Always returns the same thing.
It is:
let
data = Json.FromValue([Period = [data_vencimento_original_inicial = "01/10/2022", data_vencimento_original_final = "31/10/2022" ],TargetObject = [codigo_tipo_boleto = "5", mes_referente = "09/2022"]]),
web = Web.Contents("https://api.hinova.com.br/api/sga/v2/"&"listar/boleto-associado/periodo", [Headers = [#"Authorization"= "Bearer token", #"Content-Type"="application/json"]]),
result = Json.Document(web)
in result
Hi @ranyvieira ,
404 is just the HTTP response code. On top of that, you can provide a response body and/or other headers with a more meaningful error message that developers will see.
Besides, here are some links about this issu, hope it would help you:
web services - REST API 404: Bad URI, or Missing Resource? - Stack Overflow
[DataSource.Error] Web.Contents failed to get cont... - Microsoft Power BI Community
How to Fix a 400 Bad Request Error (Causes and Fixes)
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the support, but isn't fix the error.
The API is ok at Postman and in other system that I test (ASC), only in Power BI have a error.
And when I try other API, where the method is GET, works.
I think that I don't know how to inform the body of the correct form.... this API is Post, I can't inform the params in the headers, like I do with a Get API.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.