Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,020
Community Members
 
Community Events
176
Community Groups

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

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

Atlassian Community Events