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

Error in chunked uploads - no session ID #351

Closed
knoppys opened this issue Oct 13, 2020 · 4 comments
Closed

Error in chunked uploads - no session ID #351

knoppys opened this issue Oct 13, 2020 · 4 comments
Labels

Comments

@knoppys
Copy link

knoppys commented Oct 13, 2020

Version 7.1.0
Javascript
WordPress Plugin Environment.

Im using the example from t he javascript index.html and I always get the same error when trying to upload the file in chunks.

Error in call to API function "files/upload_session/append:2": HTTP header "Dropbox-API-Arg": cursor: missing required field 'session_id'

I can see the session ID coming back from Dropbox ok but it doesn't seem to be making it to the function for the next upload.

@greg-db
Copy link
Contributor

greg-db commented Oct 13, 2020

[Cross-linking for reference: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Javascript-SDK-Upload-sessions-returns-an-error/td-p/461001 ]

Apologies for the trouble. This is a result of the "Updating the Response object" change documented here.

This line should instead be:
.then(response => response.result.session_id)

Please give that a try and let me know if you still see any issues. I'll ask the team to update the sample code.

@knoppys
Copy link
Author

knoppys commented Oct 14, 2020

Brilliant this has resolved the issue.

@knoppys knoppys closed this as completed Oct 14, 2020
@hornta
Copy link

hornta commented Jan 7, 2022

@greg-db Will the example get updated?

@greg-db
Copy link
Contributor

greg-db commented Jan 7, 2022

@hornta The task to update the sample code is still open with the team, but I don't have a timeline on that.

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

No branches or pull requests

3 participants