资产ID自动删除某种方式 | Adobe PDF Services API

huangapple go评论52阅读模式
英文:

AssetID auto deleting somehow | Adobe PDF Services API

问题

我遇到了一个问题,通过资产API上传的文件的assetID会在某种情况下被删除或过期。我正在使用Adobe pdf服务API(https://pdf-services-ue1.adobe.io)上传一个.docx文件,然后执行文档生成操作。

起初,整个过程都正常运行 - 我可以上传一个.docx文件,检索其元数据,使用上传的.docx文件的assetID来通过注入json数据生成一个.pdf文件,然而,一两天后,assetID会自动删除,文档生成API返回message: Asset Not Found.的错误信息

第一次我以为是我的错误,第二次和第三次我确定我没有做任何操作,assetID就消失了。

> 需要注意的几点:
> - 我使用的是免费版。 (希望这不是自动删除的原因!)
> - 我没有尝试删除文档,所以不可能是一个被忽视的删除错误。
> - 我使用的文档参考:https://developer.adobe.com/document-services/apis/pdf-services

如果免费版导致资产只能在一定时间内存在,请指引我到相关的文档,我可能错过了这部分内容。

提前感谢您的帮助!

我还在论坛上发布了帖子:链接到Adobe论坛上的帖子

> 另外,我知道这里提出的问题,但它与我的情况不同,我的过程正常运行,只是一两天后无法找到assetID

英文:

I'm having issue where my assestID of a file uploaded via the assets api, deletes/expires somehow?

I'm using the Adobe pdf services api (https://pdf-services-ue1.adobe.io) to upload a .docx file to then perform the document generation.

At first the entire journey works perfectly fine - I can upload a .docx, retrieve its metadata, use the assetID of the uploaded .docx file to generate a .pdf by injecting json data, however, after a day or two, the assetID somehow auto deletes and the document generation api returns message: Asset Not Found.

The first time I thought it was a mistake on my end, the second and third time I was 100% sure I didn't action anything, the assetID just disappeared.

> A few things to note:
> - I'm on the free Tier. (Hoping this isn't the reason for the auto delete!)
> - I haven't tried deleting a document, so it couldn't have been a overlooked deletion mistake.
> - Documentation Ref I used: https://developer.adobe.com/document-services/apis/pdf-services

If the free tier causes the assets to only live for a certain period, please point me to the documentation where this is noted - I must have missed that part if this is the case.

Thanks in advance for the help!

I also posted on the forum: Link to post on the Adobe forum

> Ps. I'm aware of this questions asked here, however, it's not the
> same as my journey works fine, it's only a day or two after where the assetID can no longer be found.

答案1

得分: 1

这是预期的。Asset端点仅用于在使用API时进行临时存储。我们告诉用户可以存储24小时。因此,在脚本中多次使用它是可以的,例如,上传资产并使用它运行N个进一步的API调用,但是您不应该期望它在过去的一天中一直存在。

这在主要文档中没有很好地定义,但技术常见问题解答中有相关说明:https://developer.adobe.com/document-services/faq/tech-support/#data-security--privacy-how-does-adobe-document-services-use-or-store-file-content

英文:

This is expected. The Asset endpoint is only for temporary storage when using the API. We tell folks 24 hours. So it's fine to use it more than once in a script, so for example, upload the asset and run N further API calls with it, but you should not expect it to last past the day.

It's not very well defined in the main docs, but the technical faq covers it: https://developer.adobe.com/document-services/faq/tech-support/#data-security--privacy-how-does-adobe-document-services-use-or-store-file-content

huangapple
  • 本文由 发表于 2023年7月27日 15:02:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76777220.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定