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

Asset not found

New Here ,
Aug 13, 2023 Aug 13, 2023

Hello, I am trying to go through document generation

I have generated link to upload an asset 

Screenshot 2023-08-14 at 02.12.05.png

I have uploaded asset here
Screenshot 2023-08-14 at 02.12.30.png

I try to verify if asset is saved, but I get not found:

Screenshot 2023-08-14 at 02.12.44.png

Also, I get asset not found when trying to generate doc with newly created asset

Screenshot 2023-08-14 at 02.29.28.png

What could be the problem?

TOPICS
Document Generation API , PDF Services API
2.5K
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 ,
Aug 14, 2023 Aug 14, 2023

It looks like you tried to get the asset ID, not the uploadURI. At least from what I see in your screenshot. 

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Thanks for your response Raymond. Still not sure what you meant. I am following the documentation.

Could you explain further please?

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 ,
Aug 14, 2023 Aug 14, 2023

When you created the asset, the JSON response included an uploadUri and assetID. You uploaded to the uploadUri. You then did a GET request to a URL that includes the assetID. You should do a GET request to uploadUri.

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
New Here ,
Aug 14, 2023 Aug 14, 2023

A get request to the uri returns a 403 for me

<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
<AWSAccessKeyId>ASIAWD2N7EVPFR6SRL6H</AWSAccessKeyId>
<StringToSign>AWS4-HMAC-SHA256
20230814T154954Z
20230814/us-east-1/s3/aws4_request
57e2aa247587475766b509a9ad3e3e6c0d7b838c6ebe64c408ef44b678435a4f</StringToSign>
<SignatureProvided>0eb05f271455bd524322d70f1a0101aca8c6248c97138ae4c179e24447c6efb9</SignatureProvided>
<StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 32 33 30 38 31 34 54 31 35 34 39 35 34 5a 0a 32 30 32 33 30 38 31 34 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 35 37 65 32 61 61 32 34 37 35 38 37 34 37 35 37 36 36 62 35 30 39 61 39 61 64 33 65 33 65 36 63 30 64 37 62 38 33 38 63 36 65 62 65 36 34 63 34 30 38 65 66 34 34 62 36 37 38 34 33 35 61 34 66</StringToSignBytes>
<CanonicalRequest>GET
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 ,
Aug 14, 2023 Aug 14, 2023

You need to pass authorization heades along as well. 

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Thanks a lot Raymond. However, I already tried that earlier, it returned a 400.

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Thank you!

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 ,
Aug 14, 2023 Aug 14, 2023

You know, I just realized something  - I think I'm wrong. Looking at the docs for GET, https://developer.adobe.com/document-services/docs/apis/#tag/Assets/operation/asset.get, you DO use the asset id as you had, AND you pass the auth info.

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Thanks Raymond. Tried it, its returning a 404.

I would love to generate some documents through the api. I would greatly appreciate if I can achieve that.

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 ,
Aug 14, 2023 Aug 14, 2023

To be clear, you don't need to GET the asset. Once you created it and uploaded it, you create a Document Generation job using the asset ID. While doing a GET should work, it's not required. Does that make sense?

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Thanks Raymond, I understand.

But I still have a blocker. When generating a document, process runs successfully. I get download link, however I noticed the document is not populated with data.

The placeholders are intact and the json sent is valid and proper. 

Screenshot 2023-08-14 at 18.31.49.png

Screenshot 2023-08-14 at 18.31.59.png

Screenshot 2023-08-14 at 18.32.12.png

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 ,
Aug 14, 2023 Aug 14, 2023

Can you post your JSON as an attachment, as wlel as your Word doc and the last PDF output, all as attachments?

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
New Here ,
Aug 14, 2023 Aug 14, 2023

Okay Raymond. Please find attached files like you requested


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 ,
Aug 14, 2023 Aug 14, 2023

Where is the PDF output? I see two Word docs attached, not the PDF. Are you downloading the right bits? Be sure to get the URL from polling the job. When it's down, it has the URL pointing to the result PDF. 

 

This video shows the entire Postman process of using our APIs: https://www.youtube.com/watch?v=WehK1LprK9k

 

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
New Here ,
Aug 14, 2023 Aug 14, 2023
LATEST

Thanks Raymond, the attached video has helped me with missing bits - I was able to get the doc generated as expected. I would spend some more time going through the docs and testing stuff out.

Thanks

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