Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting 403 Forbidden Error on Code that Previously Worked

Explorer ,
Jun 28, 2023 Jun 28, 2023

Good Afternoon, I have been beating myself up over this for the past couple of hours. I currently am trying to access Document Generation API. I have used this same API for months and all of the sudden my code is giving me a 403 Forbidden Error. I did not make any changes to the Server or the code itsself. The only thing that I can assume has changed is the API.  I am not currently using an SDK. I use PHP Curl to make the API calls. As seen in my other posts. Why is it not working anymore. Please reach out to me at your earliest convience.  Below is the error code with Transaction ID. 

 

Thank you,

 

"cpf:status":{"completed":true,"type":"","title":"Access forbidden; transactionId=5gEWkl2Pwasyl4jFsXaaVTVCttTVTgAb","status":403,"report":"{\"error_code\":\"FORBIDDEN\"}"}}

If you ain't First, you're Last - Ricky Bobby
TOPICS
Document Generation API , PDF Services API
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jun 29, 2023 Jun 29, 2023

It looks like our forums included a comma in the hotlink- just remove the comma.

Translate
Explorer ,
Jun 28, 2023 Jun 28, 2023

An important thing to note is that I am seeing this error after the GET POLL request to https://cpf-ue1.adobe.io/ops/id/[x-request-id]

 

If you ain't First, you're Last - Ricky Bobby
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 28, 2023 Jun 28, 2023

Last time I ran this code without issue was June 16th. I did not make any changes to the code and I have had it running for over a year without any problems until now. 

 

If you ain't First, you're Last - Ricky Bobby
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 29, 2023 Jun 29, 2023

Can someone at adobe search my transaction ID and just point me in the right direction? This is a huge part of my site and with it being dysfunctional,  it makes me appear unprofessional as well as inept. 

If you ain't First, you're Last - Ricky Bobby
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 29, 2023 Jun 29, 2023

You say you are using the REST API - but it looks like you are using the deprecated one and not https://developer.adobe.com/document-services/docs/apis/, is that possible?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 29, 2023 Jun 29, 2023

Definitely possible the link you shared is giving me a 404 error though. I will test to see if the API links I am using are incorrect. Also I want to note that not every request I make gives me a 403 error. If I purposely make a mistake on JSON or change path to wrong document for generation it gives me a different error. It seems as though whenever there are no mistakes it does in fact give me that 403 error when it is supposed to supply me with the document. That information may not be helpful but just wanted to provide some insight on my debugging efforts thus far. 

If you ain't First, you're Last - Ricky Bobby
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 29, 2023 Jun 29, 2023
LATEST

It looks like our forums included a comma in the hotlink- just remove the comma.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources