Forums

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

Issue with Jira API

Hiep Vu March 6, 2025

While using my account and API token to retrieve information about IssueBean and Worklog. I encountered an unexpected issue. Could you please advise on how to resolve this one?


Unexpected character encountered while parsing value: <. Path '', line 0, position 0.  ------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: tDchum6SfhC5R24FcM0-XSCsP5QKHTlb1RBF2UC_8TGF-txDx2LvbA==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
March 6, 2025

Hi @Hiep Vu 

Your request is being blocked by AWS CloudFront, possibly due to an incorrect API Endpoint. Which endpoint are you using? Ensure that it is something like  https://yourdomain.atlassian.net/rest/api/3/issue/{issueKey}

As far as I know, this may also be because of the headers (Accept: application/json, and the Authorization), ensure that you are using correct headers.

Hiep Vu March 6, 2025

Hi @Tuncay Senturk _Snapbytes_ 
Thank you for your quickly reply my question.

The request functions correctly when executed step-by-step in debug mode, but fails with an error during normal execution.

Thank you again

Hiep Vu March 6, 2025

{StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Server: CloudFront
Date: Thu, 06 Mar 2025 10:55:09 GMT
Connection: close
X-Cache: Error from cloudfront
Via: 1.1 77db7c9c4eebf2d651ddc84a3f692da4.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SGN50-P2
X-Amz-Cf-Id: jeGMHprSdImkVz9LlfExpx3dcrIZ80VDrvZf-Pwe-1A11rKYZjK1qg==
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000; preload
Content-Type: text/html
Content-Length: 915
}, Trailing Headers:
{
}}

Hiep Vu March 11, 2025

Hi @Tuncay Senturk _Snapbytes_ 
Your system set my IP on backlist or something like that, always return error 403 Forbidden access denied?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events