Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

500 server error Bitbucket 5.9.1 when accessing /rest/api/1.0/projects/TES/repos/xd1/raw/file.yaml

syedimranahmed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2022

I am trying to get the file content using the REST API : 
/rest/api/1.0/projects/TES/repos/xd1/raw/file.yaml?at=d6f1962fca2eb46832de9880aad8ae82e8370902

through java client and get this 500 server error:

2022-03-21 16:49:16,032 ERROR [http-nio-7990-exec-1] @BX0N67x1009x403x0 10.216.120.243 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/rest/api/1.0/projects/TES/repos/xd1/raw/blueprint.yaml]

org.codehaus.jackson.map.JsonMappingException: No serializer found for class com.atlassian.stash.internal.rest.filter.StreamingResponseFilter$ExceptionMappingStreamingResponse and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) )

 

This works fine using postman or curl requests and only fails when I use a Java client:
The access logs are:

0.216.120.243 | http | i@BX0N67x1004x356x0 | - | 2022-03-21 16:44:37,769 | "GET /rest/api/1.0/projects/TES/repos/xd1/raw/blueprint.yaml HTTP/1.1" | "" "Apache-HttpClient/4.5.13 (Java/11.0.14.1)" | - | - | - | - | - | - | 

10.216.120.243 | http | o@BX0N67x1004x356x0 | imran | 2022-03-21 16:44:37,798 | "GET /rest/api/1.0/projects/TES/repos/xd1/raw/blueprint.yaml HTTP/1.1" | "" "Apache-HttpClient/4.5.13 (Java/11.0.14.1)" | - | - | - | access-token:id:450613245746 | 28 | - | 

10.216.120.243 | http | i@BX0N67x1004x357x0 | - | 2022-03-21 16:44:37,800 | "GET /mvc/error500 HTTP/1.1" | "" "Apache-HttpClient/4.5.13 (Java/11.0.14.1)" | - | - | - | - | - | - | 

10.216.120.243 | http | o@BX0N67x1004x357x0 | - | 2022-03-21 16:44:37,847 | "GET /mvc/error500 HTTP/1.1" | "" "Apache-HttpClient/4.5.13 (Java/11.0.14.1)" | 500 | 0 | 12659 | access-token:id:450613245746 | 46 | 1v5acyy | 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events