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

unexpected end of input error for DeleteV2 #47

Closed
ts2909 opened this issue Nov 16, 2018 · 1 comment
Closed

unexpected end of input error for DeleteV2 #47

ts2909 opened this issue Nov 16, 2018 · 1 comment

Comments

@ts2909
Copy link

ts2909 commented Nov 16, 2018

The SDK appears to be calling the v1 endpoint, instead of v2. If I change the endpoint manually it works. Also appears to the same for Move/Copy

2018/11/16 19:16:21 arg: &{/test }
2018/11/16 19:16:21 req: &{POST https://api.dropboxapi.com/2/files/delete HTTP/1.1 1 1 map[Content-Type:[application/json]] {0xc0001ba270} 0x6498a0 16 [] false api.dropboxapi.com map[] map[] map[] }

// This should be delete_v2?
Line 1276 of ~/go/src/github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files/client.go
req, err := (*dropbox.Context)(dbx).NewRequest("api", "rpc", true, "files", "delete", headers, bytes.NewReader(b))

@diwakergupta
Copy link
Collaborator

@ts2909 this should be fixed in HEAD, can you try again?

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