Stream not marked when adding Stash repository to Fisheye
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following error appears when trying to add a Stash repository to Fisheye:
Problem communicating with Stash
java.io.IOException: Stream not marked
The following appears in the atlassian-fisheye-YYYY-MM-DD.log
:
1
2
3
2014-07-10 14:40:56,958 WARN [qtp891136526-868359 ] org.apache.commons.httpclient.HttpMethodDirector HttpMethodDirector-processWWWAuthChallenge - Unable to respond to any of these challenges: {oauth=OAuth realm="http%3A%2F%2Fserver.domain.com%3A7990", oauth_signature="%OAuth_Signature%", oauth_signature_base_string="GET%26http%253A%252F%252Fserver.domain.com%253A7990%252Frest%252Fapi%252F1.0%252Frepos%26limit%253D500%2526oauth_consumer_key%253DFishEye%25253A2218598753%2526oauth_nonce%253D3281234481354611%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1123424856%2526oauth_token%253D%2526oauth_version%253D1.0%2526start%253D0%2526xoauth_requestor_id%253Dkjj3", oauth_problem="signature_invalid", oauth_signature_method="RSA-SHA1"}
2014-07-10 14:40:56,960 WARN [qtp891136526-868359 ] fisheye StashExceptionMapper-handleException - Error occurred making request to Stash
com.atlassian.stash.rest.client.api.StashException: java.io.IOException: Stream not marked
Cause
This is caused by a difference between the Application Link URL and the base URL for Stash.
For example, the Application Link URL from Fisheye to Stash is set to use http://stash.domain.com:7990/
but the base URL in Stash is set to http://stash:7990
Resolution
Change the Application Link URL and the base URL in Stash so that they match.
Updating the Application Link URL
Remove the existing Application Link from
Administration >> Global Settings >> Application Links
Create a new Application Link with the correct URL that matches the base URL for Stash
Updating the Stash base URL
Was this helpful?