You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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 |