[ 
https://issues.apache.org/jira/browse/NIFI-13485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roman updated NIFI-13485:
-------------------------
    Description: 
I have configured GitHubFlowRegistryClient and it was working fine until I 
wanted to commited Big PG (json > 1MB)
While I was trying to save PG greater than 1MB I see error:

"Unrecognized Encoding: None"

!Nifi_gitHub_2MB_PG.png!
I belive it can be connected to this:
[https://dev.to/siddhantkcode/solving-github-api-unrecognized-encoding-none-error-a-journey-to-understanding-media-types-cp4]
{code:java}
2024-07-03 14:45:21,684 ERROR [Timer-Driven Process Thread-6] 
o.a.nifi.groups.StandardProcessGroup Failed to synchro
nize 
StandardProcessGroup[identifier=738ce31d-0190-1000-0000-0000081c649a,name=MarketoIntegration
 ] with Flow Regist
ry because could not retrieve version 0199706463b0b084adef4adbdb0909db3b3e2ac8 
of flow with identifier MarketoIntegr
ation in bucket MarketoIntegration
org.apache.nifi.registry.flow.FlowRegistryException: Unrecognized encoding: none
        at 
org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:414)
        at 
org.apache.nifi.github.GitHubRepositoryClient.getContentFromCommit(GitHubRepositoryClient.java:238)
        at 
org.apache.nifi.github.GitHubFlowRegistryClient.getFlowContents(GitHubFlowRegistryClient.java:359)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlowContents$8(StandardFlowRegistr
yClientNode.java:242)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:
314)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlowContents(StandardFlowRegistryClientNo
de.java:242)
        at 
org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3757)
        at 
org.apache.nifi.controller.FlowController$7.run(FlowController.java:1082)
        at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        at 
java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
        at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExe
cutor.java:305)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.UnsupportedOperationException: Unrecognized encoding: none
        at org.kohsuke.github.GHContent.read(GHContent.java:198)
        at 
org.apache.nifi.github.GitHubRepositoryClient.lambda$getContentFromCommit$3(GitHubRepositoryClient.java:2
41)
        at 
org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:410)
        ... 14 common frames omitted
 {code}
Slack Conversation:
[https://apachenifi.slack.com/archives/C0L9VCD47/p1720019020369889?thread_ts=1716922716.334359&cid=C0L9VCD47]

GitHub issue
[https://github.com/hub4j/github-api/issues/1558]

  was:
I have configured GitHubFlowRegistryClient and it was working fine until I 
wanted to commited Big PG (json > 1MB)
While I was trying to save PG greater than 1MB I see error:

"Unrecognized Encoding: None"

!Nifi_gitHub_2MB_PG.png!
I belive it can be connected to this:
[https://dev.to/siddhantkcode/solving-github-api-unrecognized-encoding-none-error-a-journey-to-understanding-media-types-cp4]


{code:java}
2024-07-03 14:45:21,684 ERROR [Timer-Driven Process Thread-6] 
o.a.nifi.groups.StandardProcessGroup Failed to synchro
nize 
StandardProcessGroup[identifier=738ce31d-0190-1000-0000-0000081c649a,name=MarketoIntegration
 ] with Flow Regist
ry because could not retrieve version 0199706463b0b084adef4adbdb0909db3b3e2ac8 
of flow with identifier MarketoIntegr
ation in bucket MarketoIntegration
org.apache.nifi.registry.flow.FlowRegistryException: Unrecognized encoding: none
        at 
org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:414)
        at 
org.apache.nifi.github.GitHubRepositoryClient.getContentFromCommit(GitHubRepositoryClient.java:238)
        at 
org.apache.nifi.github.GitHubFlowRegistryClient.getFlowContents(GitHubFlowRegistryClient.java:359)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlowContents$8(StandardFlowRegistr
yClientNode.java:242)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:
314)
        at 
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlowContents(StandardFlowRegistryClientNo
de.java:242)
        at 
org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3757)
        at 
org.apache.nifi.controller.FlowController$7.run(FlowController.java:1082)
        at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        at 
java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
        at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExe
cutor.java:305)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.UnsupportedOperationException: Unrecognized encoding: none
        at org.kohsuke.github.GHContent.read(GHContent.java:198)
        at 
org.apache.nifi.github.GitHubRepositoryClient.lambda$getContentFromCommit$3(GitHubRepositoryClient.java:2
41)
        at 
org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:410)
        ... 14 common frames omitted
 {code}

Slack Conversation:
https://apachenifi.slack.com/archives/C0L9VCD47/p1720019020369889?thread_ts=1716922716.334359&cid=C0L9VCD47


> GitHub FlowRegistryClient for PG more than 1 MB is not working
> --------------------------------------------------------------
>
>                 Key: NIFI-13485
>                 URL: https://issues.apache.org/jira/browse/NIFI-13485
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M3, 2.0.0-M4
>            Reporter: Roman
>            Priority: Major
>         Attachments: Nifi_gitHub_2MB_PG.png
>
>
> I have configured GitHubFlowRegistryClient and it was working fine until I 
> wanted to commited Big PG (json > 1MB)
> While I was trying to save PG greater than 1MB I see error:
> "Unrecognized Encoding: None"
> !Nifi_gitHub_2MB_PG.png!
> I belive it can be connected to this:
> [https://dev.to/siddhantkcode/solving-github-api-unrecognized-encoding-none-error-a-journey-to-understanding-media-types-cp4]
> {code:java}
> 2024-07-03 14:45:21,684 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.groups.StandardProcessGroup Failed to synchro
> nize 
> StandardProcessGroup[identifier=738ce31d-0190-1000-0000-0000081c649a,name=MarketoIntegration
>  ] with Flow Regist
> ry because could not retrieve version 
> 0199706463b0b084adef4adbdb0909db3b3e2ac8 of flow with identifier MarketoIntegr
> ation in bucket MarketoIntegration
> org.apache.nifi.registry.flow.FlowRegistryException: Unrecognized encoding: 
> none
>         at 
> org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:414)
>         at 
> org.apache.nifi.github.GitHubRepositoryClient.getContentFromCommit(GitHubRepositoryClient.java:238)
>         at 
> org.apache.nifi.github.GitHubFlowRegistryClient.getFlowContents(GitHubFlowRegistryClient.java:359)
>         at 
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlowContents$8(StandardFlowRegistr
> yClientNode.java:242)
>         at 
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:
> 314)
>         at 
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlowContents(StandardFlowRegistryClientNo
> de.java:242)
>         at 
> org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3757)
>         at 
> org.apache.nifi.controller.FlowController$7.run(FlowController.java:1082)
>         at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>         at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
>         at 
> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
>         at 
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExe
> cutor.java:305)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
>         at java.base/java.lang.Thread.run(Thread.java:1583)
> Caused by: java.lang.UnsupportedOperationException: Unrecognized encoding: 
> none
>         at org.kohsuke.github.GHContent.read(GHContent.java:198)
>         at 
> org.apache.nifi.github.GitHubRepositoryClient.lambda$getContentFromCommit$3(GitHubRepositoryClient.java:2
> 41)
>         at 
> org.apache.nifi.github.GitHubRepositoryClient.execute(GitHubRepositoryClient.java:410)
>         ... 14 common frames omitted
>  {code}
> Slack Conversation:
> [https://apachenifi.slack.com/archives/C0L9VCD47/p1720019020369889?thread_ts=1716922716.334359&cid=C0L9VCD47]
> GitHub issue
> [https://github.com/hub4j/github-api/issues/1558]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to