Skip to content

Calling Bynder GetAssetService().UploadFileAsync() #63

Open
@greenrya

Description

We have not been able to pinpoint why but using the SDK we get this error periodically:

SendHttpRequest - Status: InternalServerError Body: {"message":"Could not complete upload","retry":1,"success":false} Headers: Connection = keep-alive, Date = Wed, 03 Nov 2021 11:02:59 GMT, Server = nginx, Cache-Control = no-store, must-revalidate, no-cache, X-Frame-Options = SAMEORIGIN, Access-Control-Allow-Origin = *, Access-Control-Allow-Credentials = true, Access-Control-Allow-Methods = GET, POST, PUT, DELETE, OPTIONS, Access-Control-Allow-Headers = DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Bynder-Integration, X-Cache = Error from cloudfront, Via = 1.1 930a139903fb043f0be58fe5e0a67072.cloudfront.net (CloudFront), X-Amz-Cf-Pop = SFO53-C1, X-Amz-Cf-Id = FDh7EEIkCVHbjiEW58z9fuyECqs2YFoNpD2iMkxSLjNNAnNyhWgMlA==

I got this back from support:
Hi,

I got some insight to share with you from the team. The “error” that you are receiving is a valid one. It means that the upload is not ready yet and that the call (poll) to check the status needs to be retried.

It could be that sometimes an upload takes longer to be processed before it’s returned in the “done” array. Especially if you batch upload the polling status can take longer than when checking for a single upload.

Also, the load on Bynder itself at any moment in time can cause uploads to take longer to be processed completely. In this case the integration needs to keep on polling until it get the items in the done array.

Additionally, we are going to make improvements to the upload process with File Services. I don't have all the info on all the proposed changes but based off my conversation with the team there will no longer be a need to poll for items as the conversion will just happen in the background.

I hope the above info helps, let me know if you have any further questions on this or if we can close out this ticket. Thanks.

Just posting incase someone else has ran into similar issue we will continue to monitor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions