You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Hendrik Ruijter <He...@verisure.com> on 2021/08/16 12:55:35 UTC

Power BI Real Time REST API failure

Hello, I use docker apache/nifi 1.13.2 and try to POST data to the Power BI Real Time REST API.

To the best of my understanding I get the exception described in NIFI-4970,
org.apache.nifi.processor.exception.FlowFileAccessException: Failed to import data from buffer(okio.GzipSource@51243efb).inputStream() for StandardFlowFileRecord

Refer to the attached file created with,
nifi_home/conf/logback.xml
<logger name="org.apache.nifi.processors.standard.InvokeHTTP" level="DEBUG"/>

Setting 'Put Response Body In Attribute' in InvokeHTTP throws the exception in NIFI-4970.

Test case (reproduced 10/10):
GenerateFlowfile
'Custom Text'
[
{
"timestamp" :"2021-08-16T11:18:39.271Z",
"metric" :98.6,
"label" :"AAAAA555555"
}
]
'Mime Type'
application/json

InvokeHTTP
'HTTP Method'
POST
'Remote URL'
https://api.powerbi.com/beta/REMOVED/datasets/REMOVED/rows?key=REMOVED
'Proxy Configuration Service'
Proxy Type HTTP, Squid port 3128

Grateful for any advice on how to solve this!

RE: Power BI Real Time REST API failure

Posted by Hendrik Ruijter <He...@verisure.com>.
Sorry, setting the property "Ignore response's content" to true, as described in the commit, is test OK.

Works as expected now!

From: Hendrik Ruijter <He...@verisure.com>
Sent: den 16 augusti 2021 14:56
To: users@nifi.apache.org
Subject: Power BI Real Time REST API failure

Hello, I use docker apache/nifi 1.13.2 and try to POST data to the Power BI Real Time REST API.

To the best of my understanding I get the exception described in NIFI-4970,
org.apache.nifi.processor.exception.FlowFileAccessException: Failed to import data from buffer(okio.GzipSource@51243efb).inputStream<mailto:okio.GzipSource@51243efb).inputStream>() for StandardFlowFileRecord

Refer to the attached file created with,
nifi_home/conf/logback.xml
<logger name="org.apache.nifi.processors.standard.InvokeHTTP" level="DEBUG"/>

Setting 'Put Response Body In Attribute' in InvokeHTTP throws the exception in NIFI-4970.

Test case (reproduced 10/10):
GenerateFlowfile
'Custom Text'
[
{
"timestamp" :"2021-08-16T11:18:39.271Z",
"metric" :98.6,
"label" :"AAAAA555555"
}
]
'Mime Type'
application/json

InvokeHTTP
'HTTP Method'
POST
'Remote URL'
https://api.powerbi.com/beta/REMOVED/datasets/REMOVED/rows?key=REMOVED<https://urldefense.com/v3/__https:/api.powerbi.com/beta/REMOVED/datasets/REMOVED/rows?key=REMOVED__;!!BFCLnRDDbM3FOmw!sOc2cQXs-7pn7XsfHRyKWSCCB5sNXev2r_hD9lpizEboNmCbuQQvFwE1BgK81kbc2xaTMQ$>
'Proxy Configuration Service'
Proxy Type HTTP, Squid port 3128

Grateful for any advice on how to solve this!