Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to upload files: "Invalid import ID" from polling for status #123

Open
gediminasmorkys opened this issue Mar 20, 2024 · 1 comment

Comments

@gediminasmorkys
Copy link

gediminasmorkys commented Mar 20, 2024

I am using https://github.com/Bynder/bynder-java-sdk/blob/master/src/main/java/com/bynder/sdk/service/upload/FileUploader.java#L70 to upload files to Bynder.

I have been successfully uploading files with release 2.2.20 for three months until 2024-03-16 00:51:00 EET.

Since then, without changing the release version of this library, whenever I try to upload a file to Bynder, I get the following result:

I have been advised to create this ticket here, so Bynder support can reference it.

To be honest, this feels way more of a Bynder's backend issue than the library's inner workings.

But maybe you can confirm that the library still works for uploading files?

Edit1: seems that small files that do not require chunking are uploaded just fine.
Edit2: it looks like the conversion process in Bynder's backend could take longer than the longest possible polling process in this library. I don't really know if Bynder's backend has a timeout on "finalize upload" activities. But if it does, it would make sense to tie the polling to that timeout, and instead of "Invalid import ID" the error message could communicate the cause of this issue better.

@rickvolbeda
Copy link

rickvolbeda commented Jun 25, 2024

Noticed the same behaviour recently in an implementation I am currently working on. Bynder is responding with a bad request code and the message is saying "Invalid import ID". It seems to me that the forward slash "/" at the end of the URL is causing the issue. When you call Bynder with the trailing slash manually you get "400 - bad request", when you remove the trailing slash you get the proper response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants