[ 
https://issues.apache.org/jira/browse/JENA-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056981#comment-17056981
 ] 

ASF subversion and git services commented on JENA-1854:
-------------------------------------------------------

Commit 2718a793c485e5d1f83d9174176ea094d96fe6b8 in jena's branch 
refs/heads/master from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=2718a79 ]

Merge pull request #705 from afs/jena1854-fuseki-parse-errors

JENA-1854: Fuseki to consume the whole request body when errors occur.

> 502 Bad Gateway with reverse proxy on Fuseki
> --------------------------------------------
>
>                 Key: JENA-1854
>                 URL: https://issues.apache.org/jira/browse/JENA-1854
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Fuseki
>    Affects Versions: Jena 3.11.0, Jena 3.14.0
>            Reporter: Mikael
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When posting 40k turtle data that results error
> {noformat}
> Error 400: Parse error: [line: 1, col: 34] Undefined prefix: ebucore
> {noformat}
> the response is sent before entire input data is received. That confuses 
> proxy and instead of above Fuseki error, client receives proxy error
> {noformat}
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
>  <html><head>
>  <title>502 Bad Gateway</title>
>  </head><body>
>  <h1>Bad Gateway</h1>
>  <p>The proxy server received an invalid
>  response from an upstream server.<br />
>  </p>
>  <hr>
>  <address>Apache/2.4.18 (Ubuntu) Server at xxx.fi Port 443</address>
>  </body></html>
> {noformat}
>  
> Posting data:
> {noformat}
> curl -v -X POST -H "Content-type: text/turtle" --data-binary 
> @/tmp/subtitle.ttl 
> [https://xxx.fi/fuseki/ds?graph=https://resource.lingsoft.fi/graph/demo]
> {noformat}
>  
> Proxy:
> [https://xxx.fi/fuseki/ds] is proxy address pointing to 
> [http://127.0.0.1:3030/ds|http://127.0.0.1:3030/]
>  
> Discussion:
> [https://mail-archives.apache.org/mod_mbox/jena-users/202003.mbox/%[email protected]%3e]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to