Forum Discussion

ranyvieira's avatar
ranyvieira
New Member
3 years ago

error 404

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

2 Replies